@Test
public void getMissingInProgressCommitTest() {

    // Setup:
    when(catalogManager.getInProgressCommit(eq(vf.createIRI(LOCAL_IRI)), eq(vf.createIRI(ERROR_IRI)), any(User.class))).thenReturn(Optional.empty());
    Response response = target().path("catalogs/" + encode(LOCAL_IRI) + "/records/" + encode(ERROR_IRI) + "/in-progress-commit")
            .request().get();
    assertEquals(response.getStatus(), 404);
}