@Test
public void testApplyChangesInProgressCommitId() {

    Branch branch = branchFactory.createNew(branchIRI);
    branch.setHead(commitFactory.createNew(commitIRI));
    when(catalogManager.getMasterBranch(catalogIRI, recordIRI)).thenReturn(branch);
    manager.applyChanges(ontology, inProgressCommit.getResource());
    verify(ontologyId).getOntologyIRI();
    verify(ontologyId).getOntologyIdentifier();
    verify(catalogManager).getInProgressCommit(eq(catalogIRI), eq(recordIRI), eq(inProgressCommit.getResource()));
    verify(catalogUtilsService).getCommitDifference(eq(inProgressCommit.getResource()), any(RepositoryConnection.class));
    verify(catalogUtilsService).applyDifference(eq(ontologyModel), eq(difference));
}