@Test
public void initAndResolveRepository() throws Exception {

	BuildRepository repo = new BuildRepository(git.repo().getDirectory()
			.toURI().toString(), BuildRepository.BRANCH_DEFAULT, null);
	InitOperation op = new InitOperation(repo);
	File dir = git.tempDirectory();
	Repository gitRepo = op.invoke(dir, null);
	assertNotNull(repo);
	FileRepositoryOperation resolveOp = new FileRepositoryOperation(repo);
	Repository resolved = resolveOp.invoke(dir, null);
	assertNotNull(resolved);
	assertEquals(gitRepo.getDirectory(), resolved.getDirectory());
}