@Test
public void getInstanceTest() {

    Response response = target().path("explorable-datasets/" + encode(RECORD_ID_STR) + "/instances/"
            + encode(INSTANCE_ID_STR)).request().get();
    assertEquals(response.getStatus(), 200);
    JSONObject instance = JSONArray.fromObject(response.readEntity(String.class)).getJSONObject(0);
    assertTrue(instance.containsKey("@id"));
    assertEquals(instance.getString("@id"), INSTANCE_ID_STR);
}