METHOD_0 ( ) { IDENT_0 . init ( conf ) ; IDENT_0 . start ( ) ; IDENT_0 . METHOD_1 ( conf , IDENT_1 . METHOD_2 ( ) ) ; org . apache . hadoop . yarn . server . IDENT_2 . IDENT_0 . IDENT_3 . IDENT_4 IDENT_5 = mock ( org . apache . hadoop . yarn . server . IDENT_2 . IDENT_0 . IDENT_3 . IDENT_6 . class ) ; org . apache . hadoop . yarn . server . IDENT_2 . IDENT_0 . IDENT_3 . IDENT_4 IDENT_7 = mock ( org . apache . hadoop . yarn . server . IDENT_2 . IDENT_0 . IDENT_3 . IDENT_6 . class ) ; org . apache . hadoop . yarn . server . IDENT_2 . IDENT_0 . IDENT_3 . IDENT_4 IDENT_8 = mock ( org . apache . hadoop . yarn . server . IDENT_2 . IDENT_0 . IDENT_3 . IDENT_6 . class ) ; org . apache . hadoop . yarn . server . IDENT_2 . IDENT_0 . IDENT_3 . IDENT_4 IDENT_9 = mock ( org . apache . hadoop . yarn . server . IDENT_2 . IDENT_0 . IDENT_3 . IDENT_6 . class ) ; when ( IDENT_8 . getName ( ) ) . thenReturn ( STRING_0 ) ; when ( IDENT_9 . getName ( ) ) . thenReturn ( STRING_1 ) ; when ( IDENT_5 . METHOD_3 ( ) ) . thenReturn ( java . util . Arrays . asList ( IDENT_8 ) ) ; when ( IDENT_7 . METHOD_3 ( ) ) . thenReturn ( java . util . Arrays . asList ( IDENT_9 ) ) ; org . apache . hadoop . yarn . server . IDENT_2 . IDENT_0 . IDENT_3 . IDENT_10 IDENT_11 = IDENT_0 . METHOD_4 ( ) ; org . apache . hadoop . yarn . server . IDENT_2 . IDENT_0 . IDENT_3 . IDENT_12 IDENT_13 = IDENT_11 . METHOD_5 ( STRING_2 , true ) ; IDENT_13 . METHOD_6 ( IDENT_5 ) ; IDENT_13 . METHOD_6 ( IDENT_7 ) ; org . apache . hadoop . yarn . server . IDENT_2 . IDENT_0 . IDENT_3 . IDENT_4 IDENT_14 = IDENT_0 . METHOD_7 ( IDENT_8 , IDENT_9 ) ; "<AssertPlaceHolder>" ; } METHOD_7 ( org . apache . hadoop . yarn . server . IDENT_2 . IDENT_0 . IDENT_3 . IDENT_4 , org . apache . hadoop . yarn . server . IDENT_2 . IDENT_0 . IDENT_3 . IDENT_4 ) { java . lang . String IDENT_15 = IDENT_13 . getName ( ) ; java . lang . String IDENT_16 = IDENT_17 . getName ( ) ; int IDENT_18 = - 1 ; for ( int i = 0 ; i < ( java . lang . Math . max ( IDENT_15 . length ( ) , IDENT_16 . length ( ) ) ) ; i ++ ) { if ( ( ( ( IDENT_15 . length ( ) ) <= i ) || ( ( IDENT_16 . length ( ) ) <= i ) ) || ( ( IDENT_15 . charAt ( i ) ) != ( IDENT_16 . charAt ( i ) ) ) ) { return IDENT_19 . METHOD_8 ( IDENT_15 . substring ( 0 , IDENT_18 ) ) ; } else if ( ( IDENT_15 . charAt ( i ) ) == STRING_3 ) { IDENT_18 = i ; } } return IDENT_13 ; }
org . junit . Assert . assertEquals ( IDENT_14 , IDENT_13 )