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

    when(catalogUtilsService.getCommitDifference(any(Resource.class), any(RepositoryConnection.class))).thenThrow(new IllegalStateException());
    manager.applyChanges(ontology, inProgressCommit);
}