@Test
public void getClassPropertyDetailsTest() throws Exception {

    //Setup:
    JSONArray expected = JSONArray.fromObject(IOUtils.toString(getClass()
            .getResourceAsStream("/expected-class-property-details.json")));
    Response response = target().path("explorable-datasets/" + encode(RECORD_ID_STR) + "/classes/"
            + encode(CLASS_ID_STR) + "/property-details").request().get();
    assertEquals(response.getStatus(), 200);
    JSONArray details = JSONArray.fromObject(response.readEntity(String.class));
    verify(ontology, times(0)).getAllNoDomainDataProperties();
    verify(ontology, times(0)).getAllNoDomainObjectProperties();
    verify(ontology).getAllClassDataProperties(any(IRI.class));
    verify(ontology).getAllClassObjectProperties(any(IRI.class));
    assertEquals(details, expected);
}