@Test
public void getHeadCommitIRITest() {

    Branch branch = branchFactory.createNew(BRANCH_IRI);
    branch.setHead(commitFactory.createNew(COMMIT_IRI));
    Resource iri = service.getHeadCommitIRI(branch);
    assertEquals(COMMIT_IRI, iri);
}