@Test
public void parsesFilesWithWhitespaceSuccessfully() throws IOException {

    File tempFile = File.createTempFile("this is a test with whitespaces", ".txt");
    tempFile.deleteOnExit();
    System.out.println("Using temp file: " + tempFile.getAbsolutePath());
    // use a dummy configuration
    final CompositeConfiguration dummyConfig = new CompositeConfiguration();
    final OptionSet options = optionsParser.parse("-m", tempFile.getAbsolutePath());
    final List<File> optionsFiles = options.valuesOf(optionsParser.multipartUpload);
    final List<String> nonOptions = options.nonOptionArguments();
    Assert.assertEquals(1, optionsFiles.size());
    Assert.assertEquals(0, nonOptions.size());
    final List<File> files = optionsParser.mergeNonOptionsFiles(optionsFiles, nonOptions);
    Assert.assertEquals(tempFile.getName(), files.get(0).getName());
}