GitCommit { public GitCommitResponse commit(File repository, GitCommitOptions options, String message) throws IOException, JavaGitException { CheckUtilities.checkNullArgument(repository, "repository"); CheckUtilities.checkStringArgument(message, "message"); CheckUtilities.checkNullArgument(options, "options"); IClient client = ClientManager.getInstance().getPreferredClient(); IGitCommit gitCommit = client.getGitCommitInstance(); return gitCommit.commit(repository, options, message); }  GitCommitResponseImpl commitAll(File repository, String message); GitCommitResponse commit(File repository, GitCommitOptions options, String message); GitCommitResponse commit(File repository, GitCommitOptions options, String message,
      List<File> paths); GitCommitResponse commit(File repository, String message); GitCommitResponse commitOnly(File repository, String message, List<File> paths);  }
@Test public void testCommit() throws IOException, JavaGitException { File testFile = FileUtilities.createFile(repoDirectory, "fileA.txt", "Sameple Contents"); List<File> filesToAdd = new ArrayList<File>(); filesToAdd.add(testFile); add.add(repoDirectory, null, filesToAdd); GitCommitResponse resp = commit.commit(repoDirectory, "Making a first test commit"); assertEquals("Short comment not as expected", resp.getCommitShortComment(), "Making a first test commit"); assertEquals("", 1, resp.getFilesChanged()); assertEquals("", 0, resp.getLinesDeleted()); assertEquals("", 1, resp.getLinesInserted()); }