@Test
public void testApplyChangesDifference() {Branch branch = branchFactory.createNew(branchIRI);

    branch.setHead(commitFactory.createNew(commitIRI));
    when(catalogManager.getMasterBranch(catalogIRI, recordIRI)).thenReturn(branch);
    manager.applyChanges(ontology, difference);
    verify(catalogUtilsService).applyDifference(eq(ontologyModel), eq(difference));
}