METHOD_0 ( ) { METHOD_1 ( org . dcache . IDENT_0 . IDENT_1 . METHOD_2 ( ) . METHOD_3 ( STRING_0 ) ) ; IDENT_2 . METHOD_4 ( java . util . IDENT_3 . of ( org . dcache . IDENT_0 . IDENT_4 , org . dcache . IDENT_0 . IDENT_5 ) ) ; "<AssertPlaceHolder>" ; } METHOD_5 ( ) { if ( ( ( IDENT_6 . size ( ) ) == ( org . dcache . auth . attributes . IDENT_7 . values ( ) . length ) ) || ( ( ( IDENT_6 . size ( ) ) == ( ( org . dcache . auth . attributes . IDENT_7 . values ( ) . length ) - 1 ) ) && ( ! ( IDENT_6 . contains ( IDENT_7 . IDENT_8 ) ) ) ) ) { return java . util . Optional . empty ( ) ; } else if ( IDENT_6 . isEmpty ( ) ) { return java . util . Optional . of ( java . util . IDENT_3 . METHOD_6 ( org . dcache . auth . attributes . IDENT_7 . class ) ) ; } else { java . util . IDENT_3 < org . dcache . auth . attributes . IDENT_7 > a = java . util . IDENT_3 . METHOD_7 ( IDENT_6 ) ; a . add ( IDENT_7 . IDENT_8 ) ; return java . util . Optional . of ( a ) ; } }
org . junit . Assert . assertThat ( IDENT_2 . METHOD_5 ( ) , org . hamcrest . Matchers . is ( org . hamcrest . Matchers . equalTo ( java . util . Optional . of ( java . util . IDENT_3 . of ( org . dcache . IDENT_0 . IDENT_4 , org . dcache . IDENT_0 . IDENT_5 , org . dcache . IDENT_0 . IDENT_8 ) ) ) ) )