METHOD_0 ( ) { org . springframework . test . util . IDENT_0 . METHOD_1 ( instance , STRING_0 , IDENT_1 ) ; when ( IDENT_2 . validate ( file ) ) . thenReturn ( true ) ; when ( file . getPath ( ) ) . thenReturn ( STRING_1 ) ; final java . lang . String IDENT_3 = STRING_2 ; final java . lang . String IDENT_4 = STRING_3 ; when ( IDENT_5 . METHOD_2 ( ) ) . thenReturn ( IDENT_3 ) . thenReturn ( IDENT_4 ) . thenReturn ( null ) ; when ( IDENT_6 . validate ( IDENT_3 ) ) . thenReturn ( false ) ; when ( IDENT_6 . validate ( IDENT_4 ) ) . thenReturn ( true ) ; when ( IDENT_1 . validate ( IDENT_3 ) ) . thenReturn ( false ) ; when ( IDENT_1 . validate ( IDENT_4 ) ) . thenReturn ( true ) ; boolean result = instance . validate ( file ) ; "<AssertPlaceHolder>" ; verify ( results ) . METHOD_3 ( anyString ( ) ) ; verify ( results , METHOD_4 ( ) ) . METHOD_5 ( anyString ( ) , METHOD_6 ( ) , ( ( java . util . List < java . lang . String > ) ( METHOD_7 ( ) ) ) ) ; } validate ( T ) { boolean IDENT_7 = false ; java . io . File file = ( ( java . io . File ) ( obj ) ) ; if ( IDENT_2 . validate ( file ) ) { results . METHOD_3 ( file . getPath ( ) ) ; METHOD_8 ( file ) ; IDENT_7 = true ; } return IDENT_7 ; }
org . junit . Assert . assertTrue ( result )