@Test
public void getMappingTest() {

    Response response = target().path("mappings/" + encode(MAPPING_IRI)).request()
            .accept(MediaType.APPLICATION_JSON_TYPE).get();
    assertEquals(response.getStatus(), 200);
    verify(manager).retrieveMapping(vf.createIRI(MAPPING_IRI));
    try {
        JSONArray.fromObject(response.readEntity(String.class));
    } catch (Exception e) {
        fail("Expected no exception, but got: " + e.getMessage());
    }
}