@Deprecated
  public static String[] createFilePathList( VariableSpace space, String[] fileName, String[] fileMask,
                                             String[] excludeFileMask, String[] fileRequired ) {
    return createFilePathList( DefaultBowl.getInstance(), space, fileName, fileMask, excludeFileMask, fileRequired );
  }
@Test
  public void testSpecialCharsInFileNamesDefaultBehavior() throws IOException, KettleException {
    String fileNameWithSpaces = "file name with spaces";
    tempFolder.newFile( fileNameWithSpaces );

    VariableSpace spaceMock = mock( VariableSpace.class );
    when( spaceMock.environmentSubstitute( any( String[].class ) ) ).thenAnswer(
      (Answer<String[]>) invocationOnMock -> (String[]) invocationOnMock.getArguments()[ 0 ] );

    String[] folderNameList = { tempFolder.getRoot().getPath() };
    String[] emptyStringArray = { "" };

    boolean[] fileRequiredList = { true };
    String[] paths = FileInputList
      .createFilePathList( spaceMock, folderNameList, emptyStringArray, emptyStringArray, emptyStringArray,
        fileRequiredList );
    assertTrue( "File with spaces not found", paths[ 0 ].endsWith( fileNameWithSpaces ) );
  }