@Test
public void noChanges() throws Exception {

	RevCommit commit = git.add("file.txt", "a");
	BuildRepository repo = new BuildRepository(git.repo().getDirectory()
			.toURI().toString(), "refs/heads/master", null);
	CloneOperation clone = new CloneOperation(repo);
	File dir = git.tempDirectory();
	assertNotNull(clone.invoke(dir, null));
	BuildRepositoryState state = new BuildRepositoryState();
	state.put(repo, commit);
	PollOperation op = new PollOperation(state,
			Collections.singletonList(repo));
	assertEquals(PollingResult.NO_CHANGES, op.invoke(dir, null));
}