METHOD_0 ( ) { com . IDENT_0 . IDENT_1 . IDENT_2 test = new com . IDENT_0 . IDENT_1 . METHOD_1 ( ) ; int [ ] input = new int [ ] { 1 , 2 , 1 } ; int [ ] expected = new int [ ] { 2 , - 1 , 2 } ; "<AssertPlaceHolder>" ; } METHOD_2 ( int [ ] ) { int [ ] array = new int [ IDENT_3 . length ] ; java . util . IDENT_4 < java . lang . Integer > IDENT_5 = new java . util . METHOD_3 ( ) ; for ( int i = 0 ; i < ( IDENT_3 . length ) ; i ++ ) { while ( ( ! ( IDENT_5 . isEmpty ( ) ) ) && ( ( IDENT_3 [ i ] ) > ( IDENT_3 [ IDENT_5 . METHOD_4 ( ) ] ) ) ) { array [ IDENT_5 . METHOD_5 ( ) ] = IDENT_3 [ i ] ; } IDENT_5 . METHOD_6 ( i ) ; } for ( int i = 0 ; i < ( IDENT_3 . length ) ; i ++ ) { while ( ( ! ( IDENT_5 . isEmpty ( ) ) ) && ( ( IDENT_3 [ i ] ) > ( IDENT_3 [ IDENT_5 . METHOD_4 ( ) ] ) ) ) { array [ IDENT_5 . METHOD_5 ( ) ] = IDENT_3 [ i ] ; } } while ( ! ( IDENT_5 . isEmpty ( ) ) ) { array [ IDENT_5 . METHOD_5 ( ) ] = - 1 ; } return array ; }
org . junit . Assert . assertArrayEquals ( test . METHOD_2 ( input ) , expected )