METHOD_0 ( ) { final java . lang . String IDENT_0 = STRING_0 ; final java . lang . String IDENT_1 = STRING_1 ; final java . lang . String IDENT_2 = METHOD_1 ( ) ; final java . lang . String IDENT_3 = STRING_2 ; org . apache . hadoop . yarn . server . IDENT_4 . IDENT_5 . IDENT_6 . IDENT_7 filter = new org . apache . hadoop . yarn . server . IDENT_4 . IDENT_5 . IDENT_6 . METHOD_2 ( ) ; org . apache . hadoop . yarn . server . IDENT_4 . IDENT_5 . IDENT_6 . METHOD_2 IDENT_8 = org . mockito . Mockito . METHOD_3 ( filter ) ; METHOD_3 . IDENT_9 = new java . util . HashMap ( ) ; METHOD_3 . IDENT_9 . put ( IDENT_0 , IDENT_2 ) ; METHOD_3 . IDENT_9 . put ( IDENT_1 , IDENT_3 ) ; METHOD_3 . IDENT_10 = new java . lang . String [ ] { IDENT_0 , IDENT_1 } ; "<AssertPlaceHolder>" ; } METHOD_4 ( ) { java . lang . String IDENT_11 = null ; if ( ( IDENT_9 . size ( ) ) == 1 ) { IDENT_11 = IDENT_9 . values ( ) . iterator ( ) . next ( ) ; } else if ( ( IDENT_10 ) != null ) { for ( java . lang . String url : IDENT_10 ) { java . lang . String host = IDENT_9 . get ( url ) ; if ( METHOD_5 ( host ) ) { IDENT_11 = host ; break ; } } } if ( IDENT_11 == null ) { throw new javax . servlet . METHOD_6 ( STRING_3 ) ; } return IDENT_11 ; }
org . junit . Assert . assertEquals ( METHOD_3 . METHOD_4 ( ) , IDENT_2 )