@Test
public void oneRepository() throws Exception {

	RevCommit commit = git.add("file.txt", "a");
	BuildRepository repo = new BuildRepository("a", "b", null);
	RepositoryStateOperation op = new RepositoryStateOperation(
			Collections.singletonList(repo));
	SCMRevisionState state = op.invoke(git.repo().getDirectory(), null);
	assertNotNull(state);
	assertTrue(state instanceof BuildRepositoryState);
	assertEquals(commit, ((BuildRepositoryState) state).get(repo));
}