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