public void testFindHighestRevision_nonExistentHashThrows() throws Exception {
GitClonedRepository mockRepo = mockClonedRepo(repositoryName);
expectLogCommand(mockRepo, LOG_FORMAT_COMMIT_ID, "bogusHash")
.andThrow(
new CommandException(
"git",
ImmutableList.<String>of("mock args"),
"mock stdout",
"mock stderr: unknown revision",
1));