@Test
public void getCommitTest() {

    Response response = target().path("commits/" + encode(COMMIT_IRIS[1]))
            .request().get();
    assertEquals(response.getStatus(), 200);
    verify(catalogManager).getCommit(vf.createIRI(COMMIT_IRIS[1]));
    try {
        JSONObject result = JSONObject.fromObject(response.readEntity(String.class));
        assertFalse(result.containsKey("commit"));
        assertFalse(result.containsKey("additions"));
        assertFalse(result.containsKey("deletions"));
        assertTrue(result.containsKey("@id"));
        assertEquals(result.getString("@id"), COMMIT_IRIS[1]);
    } catch (Exception e) {
        fail("Expected no exception, but got: " + e.getMessage());
    }
}