METHOD_0 ( ) { when ( IDENT_0 . validate ( io . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 , io . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_5 ) ) . thenReturn ( io . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_6 ) ; when ( IDENT_7 . validate ( io . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 , io . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_5 ) ) . thenReturn ( io . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_8 ) ; when ( IDENT_9 . METHOD_1 ( ) ) . thenReturn ( java . util . Arrays . asList ( STRING_0 , STRING_1 ) ) ; "<AssertPlaceHolder>" ; } validate ( io . IDENT_1 . domain . api . IDENT_10 . IDENT_11 , io . IDENT_1 . domain . api . IDENT_10 . IDENT_12 ) { if ( IDENT_13 == null ) { io . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_14 . LOG . warn ( STRING_2 , token . METHOD_2 ( ) ) ; return token ; } io . IDENT_1 . IDENT_2 . IDENT_3 . persistence . entities . IDENT_15 IDENT_9 = repository . METHOD_3 ( IDENT_13 . getId ( ) ) ; if ( IDENT_9 == null ) { io . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_14 . LOG . warn ( STRING_3 , IDENT_13 ) ; return token ; } java . util . List < java . lang . String > IDENT_16 = IDENT_9 . METHOD_1 ( ) ; if ( IDENT_16 . isEmpty ( ) ) { io . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_14 . LOG . warn ( STRING_4 , IDENT_13 ) ; return token ; } for ( java . lang . String IDENT_17 : IDENT_16 ) { io . IDENT_1 . IDENT_2 . IDENT_18 . IDENT_19 provider = IDENT_20 . get ( IDENT_17 ) ; if ( provider != null ) { io . IDENT_1 . domain . api . IDENT_10 . IDENT_11 IDENT_21 = provider . validate ( token , IDENT_13 ) ; if ( IDENT_21 . isValid ( ) ) { return IDENT_21 ; } } } return token ; }
org . junit . Assert . assertTrue ( service . validate ( io . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_4 , io . IDENT_1 . IDENT_2 . IDENT_3 . IDENT_5 ) . isValid ( ) )