}
@Test
public void testValidateWithoutGitCommitId() {
Git git = new Git(null, new Head(null, null, null, null, null, null), null, null);
ValidationErrors errors = new JobValidator(new Job().withRepoToken("ad3fg5").withGit(git)).validate();
assertThat(errors, hasSize(1));
assertThat(errors.get(0).getLevel(), is(Level.ERROR));
}