@Test
public void testApplyChangesInProgressCommitIdOntologyIRINotSet() {

    when(ontologyId.getOntologyIRI()).thenReturn(Optional.empty());
    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));
}