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