@Test
public void getInProgressCommitInRdfxmlTest() {

    Response response = target().path("catalogs/" + encode(LOCAL_IRI) + "/records/" + encode(RECORD_IRI) + "/in-progress-commit")
            .queryParam("format", "rdf/xml").request().get();
    assertEquals(response.getStatus(), 200);
    verify(catalogManager).getInProgressCommit(eq(vf.createIRI(LOCAL_IRI)), eq(vf.createIRI(RECORD_IRI)), any(User.class));
    verify(catalogManager).getCommitDifference(vf.createIRI(COMMIT_IRIS[0]));
    try {
        JSONObject result = JSONObject.fromObject(response.readEntity(String.class));
        assertTrue(result.containsKey("additions"));
        assertTrue(result.containsKey("deletions"));
        notJsonld(result.getString("additions"));
        notJsonld(result.getString("deletions"));
    } catch (Exception e) {
        fail("Expected no exception, but got: " + e.getMessage());
    }
}