METHOD_0 ( ) { org . apache . hadoop . conf . Configuration conf = new org . apache . hadoop . conf . Configuration ( ) ; conf . METHOD_1 ( IDENT_0 . IDENT_1 , 3 ) ; org . apache . hadoop . crypto . key . IDENT_2 . IDENT_3 IDENT_4 = mock ( org . apache . hadoop . crypto . key . IDENT_2 . IDENT_3 . class ) ; when ( IDENT_4 . METHOD_2 ( org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . any ( org . apache . hadoop . crypto . key . IDENT_5 . IDENT_6 . class ) ) ) . METHOD_3 ( new java . io . IOException ( new org . apache . hadoop . security . authentication . client . METHOD_4 ( STRING_0 ) ) ) ; org . apache . hadoop . crypto . key . IDENT_2 . IDENT_3 IDENT_7 = mock ( org . apache . hadoop . crypto . key . IDENT_2 . IDENT_3 . class ) ; when ( IDENT_7 . METHOD_2 ( org . mockito . Mockito . anyString ( ) , org . mockito . Mockito . any ( org . apache . hadoop . crypto . key . IDENT_5 . IDENT_6 . class ) ) ) . METHOD_3 ( new java . io . IOException ( new org . apache . hadoop . security . authentication . client . METHOD_4 ( STRING_0 ) ) ) ; when ( IDENT_4 . METHOD_5 ( ) ) . thenReturn ( STRING_0 ) ; when ( IDENT_7 . METHOD_5 ( ) ) . thenReturn ( STRING_1 ) ; org . apache . hadoop . crypto . key . IDENT_2 . IDENT_8 IDENT_9 = new org . apache . hadoop . crypto . key . IDENT_2 . METHOD_6 ( new org . apache . hadoop . crypto . key . IDENT_2 . IDENT_3 [ ] { IDENT_4 , IDENT_7 } , 0 , conf ) ; try { IDENT_9 . METHOD_2 ( STRING_2 , new org . apache . hadoop . crypto . key . IDENT_5 . METHOD_7 ( conf ) ) ; org . junit . Assert . fail ( STRING_3 ) ; } catch ( java . lang . Exception e ) { "<AssertPlaceHolder>" ; } verify ( IDENT_4 , org . mockito . Mockito . times ( 1 ) ) . METHOD_2 ( org . mockito . Mockito . eq ( STRING_2 ) , org . mockito . Mockito . any ( org . apache . hadoop . crypto . key . IDENT_5 . METHOD_7 . class ) ) ; verify ( IDENT_7 , org . mockito . Mockito . times ( 1 ) ) . METHOD_2 ( org . mockito . Mockito . eq ( STRING_2 ) , org . mockito . Mockito . any ( org . apache . hadoop . crypto . key . IDENT_5 . METHOD_7 . class ) ) ; } METHOD_8 ( ) { org . apache . hadoop . yarn . IDENT_10 . IDENT_11 . IDENT_12 p = ( IDENT_13 ) ? IDENT_10 : builder ; if ( p . METHOD_9 ( ) ) { return new org . apache . hadoop . yarn . api . records . impl . IDENT_14 . METHOD_10 ( p . METHOD_8 ( ) ) ; } else { return null ; } }
org . junit . Assert . assertTrue ( ( ( e . METHOD_8 ( ) ) instanceof org . apache . hadoop . security . authentication . client . METHOD_4 ) )