question: protected boolean isOutputLineExpected ( final String line , final String [ ] expectedPrefixes , final boolean filePathsAreExpected ) { final String trimmed = line != null ? line . trim ( ) : null ; if ( StringUtils . isNotEmpty ( trimmed ) ) { if ( filePathsAreExpected && isFilePath ( line ) ) { return true ; } if ( expectedPrefixes != null ) { for ( final String prefix : expectedPrefixes ) { if ( StringUtils . startsWithIgnoreCase ( line , prefix ) ) { return true ; } } } return false ; } return true ; }
target:  This method evaluates a line of output to see if it contains something that is expected. If not, it returns false. There are 3 kinds of expected lines: 1) lines that begin with an expected prefix 2) lines that contain a folder path (/path/path:) 3) empty lines All other types of lines are unexpected.