@Test
public void getSortOptionsTest() {

    Response response = target().path("catalogs/sort-options").request().get();
    assertEquals(response.getStatus(), 200);
    try {
        JSONArray array = JSONArray.fromObject(response.readEntity(String.class));
        assertEquals(array.size(), 3);
        assertTrue(array.contains(DCTERMS.TITLE.stringValue()));
        assertTrue(array.contains(DCTERMS.MODIFIED.stringValue()));
        assertTrue(array.contains(DCTERMS.ISSUED.stringValue()));
    } catch (Exception e) {
        fail("Expected no exception, but got: " + e.getMessage());
    }
}