@Test
public void getRecordTypesTest() {

    Response response = target().path("catalogs/record-types").request().get();
    assertEquals(response.getStatus(), 200);
    try {
        JSONArray array = JSONArray.fromObject(response.readEntity(String.class));
        assertEquals(array.size(), 5);
        assertTrue(array.contains(recordFactory.getTypeIRI().stringValue()));
        assertTrue(array.contains(unversionedRecordFactory.getTypeIRI().stringValue()));
        assertTrue(array.contains(versionedRecordFactory.getTypeIRI().stringValue()));
        assertTrue(array.contains(versionedRDFRecordFactory.getTypeIRI().stringValue()));
        assertTrue(array.contains(mappingRecordFactory.getTypeIRI().stringValue()));
    } catch (Exception e) {
        fail("Expected no exception, but got: " + e.getMessage());
    }
}