@Test
public void getRecordTest() {

    Response response = target().path("catalogs/" + encode(LOCAL_IRI) + "/records/" + encode(RECORD_IRI))
            .request().get();
    assertEquals(response.getStatus(), 200);
    verify(catalogManager).getRecord(vf.createIRI(LOCAL_IRI), vf.createIRI(RECORD_IRI), recordFactory);
    try {
        ArrayNode arr = (ArrayNode) mapper.readTree(response.readEntity(String.class));
        JsonNode firstRecord = arr.get(0);
        assertTrue(firstRecord.has("@id"));
        assertEquals(firstRecord.get("@id").textValue(), RECORD_IRI);
    } catch (Exception e) {
        fail("Expected no exception, but got: " + e.getMessage());
    }
}