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

    when(catalogManager.getInProgressCommit(any(Resource.class), any(Resource.class), any(Resource.class))).thenReturn(Optional.empty());
    manager.applyChanges(ontology, inProgressCommit.getResource());
}