@Test
public void listRemote() throws Exception {

	Repository gitRepo = git.repo();
	BuildRepository repo = new BuildRepository(gitRepo.getDirectory()
			.toURI().toString(), Constants.R_HEADS + Constants.MASTER, null);
	LsRemoteOperation op = new LsRemoteOperation(repo, gitRepo);
	RevCommit commit1 = git.add("file.txt", "a");
	assertEquals(commit1, op.call());
	RevCommit commit2 = git.add("file.txt", "b");
	assertEquals(commit2, op.call());
}