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