@Test
public void createInstanceTest() {

    //Setup:
    JSONObject instance = new JSONObject().element("@id", NEW_INSTANCE_ID_STR).element(_Thing.title_IRI,
            new JSONArray().element(new JSONObject().element("@value", "title")));
    Response response = target().path("explorable-datasets/" + encode(RECORD_ID_STR) + "/instances").request()
            .post(Entity.json(instance.toString()));
    assertEquals(response.getStatus(), 201);
    assertEquals(response.readEntity(String.class), NEW_INSTANCE_ID_STR);
}