@Test
public void getCommitWithErrorTest() {

    // Setup:
    when(catalogManager.getCommit(vf.createIRI(ERROR_IRI))).thenThrow(new IllegalArgumentException());
    Response response = target().path("commits/" + encode(ERROR_IRI))
            .request().get();
    assertEquals(response.getStatus(), 500);
}