@Test
public void testReadyToCommitNewFiles() throws IOException, JavaGitException {

    List<File> filesToAdd = new ArrayList<File>();
    filesToAdd.add(file1);
    filesToAdd.add(file2);
    filesToAdd.add(new File("testDirectory"));
    filesToAdd.add(new File("testDirectory" + File.separator + file3.getPath()));
    GitAddOptions addOptions = new GitAddOptions();
    gitAdd.add(repositoryDirectory, addOptions, filesToAdd);
    List<File> statusPath = null;
    GitStatusResponse status = gitStatus.status(repositoryDirectory, options, statusPath);
    int noOfNewFilesToCommit = status.getNewFilesToCommitSize();
    assertEquals("Error. No of New Files to commit does not match", 3, noOfNewFilesToCommit);
    assertEquals("Error. Filename does not match", "foobar01", status
            .getFileFromNewFilesToCommit(0).getName());
    assertEquals("Error. Filename does not match", "foobar02", status
            .getFileFromNewFilesToCommit(1).getName());
    assertEquals("Error. Filename does not match", repositoryDirectory.getPath() +
            File.separator + "testDirectory" + File.separator + "foobar03",
            status.getFileFromNewFilesToCommit(2).toString());
}