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