@Test
public void updateVersionTest() {

    //Setup:
    JSONObject version = new JSONObject().element("@id", VERSION_IRI)
            .element("@type", new JSONArray().element(Version.TYPE));
    Response response = target().path("catalogs/" + encode(LOCAL_IRI) + "/records/" + encode(RECORD_IRI)
            + "/versions/" + encode(VERSION_IRI))
            .request().put(Entity.json(version.toString()));
    assertEquals(response.getStatus(), 200);
    verify(catalogManager).updateVersion(eq(vf.createIRI(LOCAL_IRI)), eq(vf.createIRI(RECORD_IRI)), any(Version.class));
    verify(bNodeService).deskolemize(any(Model.class));
}