METHOD_0 ( ) { IDENT_0 . util . IDENT_1 parent = new IDENT_0 . util . METHOD_1 ( STRING_0 ) ; IDENT_0 . util . METHOD_1 IDENT_2 = new IDENT_0 . util . METHOD_1 ( STRING_1 ) ; METHOD_2 ( IDENT_3 . find ( any ( ) , eq ( IDENT_2 ) ) ) . METHOD_3 ( METHOD_4 ( parent , "foo" ) ) ; METHOD_2 ( IDENT_3 . METHOD_5 ( any ( ) , eq ( STRING_2 ) , any ( ) , any ( ) ) ) . METHOD_3 ( IDENT_2 ) ; IDENT_0 . util . METHOD_1 result = monitor . METHOD_5 ( IDENT_0 . IDENT_4 . IDENT_5 . IDENT_6 , STRING_2 , STRING_3 , new org . dcache . IDENT_7 . METHOD_6 ( ) ) ; verify ( IDENT_3 ) . METHOD_5 ( eq ( IDENT_0 . IDENT_4 . IDENT_5 . IDENT_6 ) , eq ( STRING_2 ) , eq ( STRING_3 ) , any ( ) ) ; "<AssertPlaceHolder>" ; verify ( IDENT_8 ) . METHOD_7 ( IDENT_9 . IDENT_10 , parent , "foo" , IDENT_11 . IDENT_12 ) ; verify ( IDENT_8 , METHOD_8 ( ) ) . METHOD_9 ( any ( ) , any ( ) , any ( ) ) ; verify ( IDENT_8 , METHOD_8 ( ) ) . METHOD_10 ( any ( ) , any ( ) , any ( ) , any ( ) , any ( ) ) ; } METHOD_5 ( javax . security . auth . IDENT_13 , java . lang . String , java . lang . String , org . dcache . IDENT_7 . METHOD_6 ) { METHOD_11 ( IDENT_14 . METHOD_12 ( org . dcache . IDENT_15 . IDENT_4 . IDENT_16 . IDENT_17 ) , STRING_4 , IDENT_14 . METHOD_13 ( ) ) ; try { java . io . File IDENT_18 = new java . io . File ( path ) ; java . lang . String IDENT_19 = IDENT_18 . METHOD_14 ( ) ; if ( IDENT_19 == null ) { throw new IDENT_0 . util . METHOD_15 ( ( STRING_5 + path ) ) ; } org . dcache . IDENT_15 . IDENT_4 . IDENT_20 parent = METHOD_16 ( subject , IDENT_19 ) ; if ( ! ( org . dcache . auth . IDENT_21 . METHOD_17 ( subject ) ) ) { org . dcache . IDENT_7 . METHOD_6 attributes = METHOD_18 ( parent ) ; if ( ( IDENT_22 . METHOD_19 ( subject , attributes ) ) != ( IDENT_23 ) ) { throw new IDENT_0 . util . METHOD_20 ( ( STRING_6 + path ) ) ; } } org . dcache . IDENT_15 . IDENT_24 IDENT_25 ; try { int IDENT_26 = IDENT_14 . METHOD_21 ( ) . METHOD_22 ( ( ) -> METHOD_23 ( subject , parent ) ) ; int IDENT_27 = IDENT_14 . METHOD_24 ( ) . METHOD_22 ( ( ) -> METHOD_25 ( subject , parent ) ) ; int IDENT_28 = IDENT_14 . METHOD_26 ( ) . METHOD_27 ( org . dcache . IDENT_15 . IDENT_4 . IDENT_16 . IDENT_29 ) ; IDENT_14 . METHOD_28 ( org . dcache . IDENT_15 . IDENT_4 . IDENT_30 , org . dcache . IDENT_15 . IDENT_4 . IDENT_31 , org . dcache . IDENT_15 . IDENT_4 . IDENT_32 ) ; IDENT_25 = IDENT_33 . METHOD_29 ( parent , IDENT_18 . getName ( ) , IDENT_26 , IDENT_27 , IDENT_28 , IDENT_34 . getBytes ( IDENT_35 . UTF_8 ) ) ; } catch ( java . io . IDENT_36 e ) { throw e . METHOD_30 ( ) ; } IDENT_0 . util . METHOD_1 IDENT_37 = new IDENT_0 . util . METHOD_1 ( IDENT_25 . getId ( ) ) ; if ( ! ( IDENT_14 . METHOD_13 ( ) . isEmpty ( ) ) ) { METHOD_31 ( subject , IDENT_37 , IDENT_14 , java . util . IDENT_38 . METHOD_32 ( org . dcache . IDENT_15 . IDENT_4 . IDENT_39 . class ) ) ; } return IDENT_37 ; } catch ( org . dcache . IDENT_15 . IDENT_40 e ) { throw new IDENT_0 . util . METHOD_33 ( ( STRING_7 + path ) ) ; } catch ( org . dcache . IDENT_15 . IDENT_41 e ) { throw new IDENT_0 . util . METHOD_34 ( ( STRING_8 + path ) ) ; } catch ( org . dcache . IDENT_15 . IDENT_42 e ) { throw new IDENT_0 . util . METHOD_15 ( ( STRING_5 + path ) ) ; } catch ( java . io . IOException e ) { throw new IDENT_0 . util . METHOD_35 ( IDENT_0 . util . METHOD_35 . IDENT_43 , e . getMessage ( ) ) ; } }
org . junit . Assert . assertThat ( result , is ( equalTo ( IDENT_2 ) ) )