@Test
public void updateInstanceTest() {

    //Setup:
    JSONObject instance = new JSONObject().element("@id", INSTANCE_ID_STR)
            .element(_Thing.title_IRI, new JSONArray().add(new JSONObject().element("@value", "title")));
    Response response = target().path("explorable-datasets/" + encode(RECORD_ID_STR) + "/instances/"
            + encode(INSTANCE_ID_STR)).request().put(Entity.json(instance));
    assertEquals(response.getStatus(), 200);
    verify(datasetConnection).begin();
    verify(datasetConnection).remove(any(Iterable.class));
    verify(datasetConnection).add(any(Model.class));
    verify(bNodeService).deskolemize(any(Model.class));
    verify(datasetConnection).commit();
}