@Test(expected = IllegalStateException.class)
public void testApplyChangesInProgressCommitIdRecordNotFound() {

    when(ontologyId.getOntologyIRI()).thenReturn(Optional.of(versionIRI));
    manager.applyChanges(ontology, inProgressCommit.getResource());
}