@Test
public void getCompiledResourceNoEntityTest() {

    Model expected = mf.createModel();
    expected.add(vf.createIRI(COMMIT_IRIS[0]), typeIRI, vf.createIRI("http://www.w3.org/2002/07/owl#Ontology"));
    expected.add(vf.createIRI(COMMIT_IRIS[1]), typeIRI, vf.createIRI("http://www.w3.org/2002/07/owl#Ontology"));
    expected.add(vf.createIRI(COMMIT_IRIS[2]), typeIRI, vf.createIRI("http://www.w3.org/2002/07/owl#Ontology"));
    when(catalogManager.getCompiledResource(any(List.class))).thenReturn(expected);
    Response response = target().path("commits/" + encode(COMMIT_IRIS[1]) + "/resource")
            .request().get();
    assertEquals(response.getStatus(), 200);
    verify(catalogManager).getCommitChain(vf.createIRI(COMMIT_IRIS[1]));
    try {
        JSONArray result = JSONArray.fromObject(response.readEntity(String.class));
        JSONObject commitObj = result.getJSONObject(0);
        assertTrue(commitObj.containsKey("@id"));
        assertEquals(commitObj.getString("@id"), COMMIT_IRIS[0]);
        assertTrue(result.size() == 3);
    } catch (Exception e) {
        fail("Expected no exception, but got: " + e.getMessage());
    }
}