@Test
public void getLatestVersionTest() {

    Response response = target().path("catalogs/" + encode(LOCAL_IRI) + "/records/" + encode(RECORD_IRI) + "/versions/latest")
            .request().get();
    assertEquals(response.getStatus(), 200);
    verify(catalogManager).getLatestVersion(vf.createIRI(LOCAL_IRI), vf.createIRI(RECORD_IRI), versionFactory);
    assertResponseIsObjectWithId(response, VERSION_IRI);
}