METHOD_0 ( ) { when ( IDENT_0 . METHOD_1 ( any ( javax . security . auth . IDENT_1 . class ) ) ) . METHOD_2 ( IDENT_2 . util . IDENT_3 . class ) ; try { IDENT_4 . METHOD_1 ( IDENT_5 ) ; } catch ( IDENT_2 . util . IDENT_3 IDENT_6 ) { } METHOD_3 ( IDENT_0 ) ; when ( IDENT_0 . METHOD_1 ( any ( javax . security . auth . IDENT_1 . class ) ) ) . thenReturn ( IDENT_7 ) ; org . dcache . auth . IDENT_8 IDENT_9 = IDENT_4 . METHOD_1 ( IDENT_5 ) ; "<AssertPlaceHolder>" ; } METHOD_1 ( javax . security . auth . IDENT_1 ) { org . dcache . IDENT_10 . monitor . IDENT_11 record = new org . dcache . IDENT_10 . monitor . METHOD_4 ( ) ; org . dcache . IDENT_10 . monitor . IDENT_12 IDENT_13 = org . dcache . IDENT_10 . monitor . IDENT_14 . of ( record , org . dcache . IDENT_10 . IDENT_15 . IDENT_16 ) ; try { org . dcache . IDENT_10 . IDENT_8 IDENT_9 = METHOD_1 ( subject , IDENT_13 ) ; IDENT_17 . remove ( subject ) ; return IDENT_9 ; } catch ( org . dcache . IDENT_10 . IDENT_18 e ) { if ( ! ( IDENT_17 . METHOD_5 ( subject ) ) ) { IDENT_17 . add ( subject ) ; org . dcache . IDENT_10 . monitor . IDENT_19 result = record . METHOD_6 ( ) ; if ( result . METHOD_7 ( ) ) { org . dcache . IDENT_10 . monitor . IDENT_20 IDENT_21 = new org . dcache . IDENT_10 . monitor . METHOD_8 ( result ) ; org . dcache . IDENT_10 . IDENT_15 . LOGGER . warn ( ( STRING_0 + STRING_1 ) , IDENT_21 . METHOD_9 ( ) ) ; } else { org . dcache . IDENT_10 . IDENT_15 . LOGGER . warn ( STRING_2 , e . getMessage ( ) ) ; } } throw e ; } }
org . junit . Assert . assertThat ( IDENT_9 , org . hamcrest . Matchers . is ( IDENT_7 ) )