@Test
public void getCommitWithNoResults() {

    // Setup:
    when(catalogManager.getCommit(any())).thenReturn(Optional.empty());
    // When:
    Response response = target().path("commits/" + encode(COMMIT_IRIS[1]))
            .request().get();
    // Then:
    assertEquals(response.getStatus(), 404);
    verify(catalogManager).getCommit(vf.createIRI(COMMIT_IRIS[1]));
}