@Test
public void getStatesWithoutFiltersTest() {

    Response response = target().path("states").request().get();
    assertEquals(response.getStatus(), 200);
    verify(stateManager).getStates(anyString(), anyString(), anySetOf(Resource.class));
    try {
        String str = response.readEntity(String.class);
        JSONArray arr = JSONArray.fromObject(str);
        assertEquals(results.size(), arr.size());
        for (int i = 0; i < arr.size(); i++) {
            JSONObject object = arr.optJSONObject(i);
            assertNotNull(object);
            assertTrue(results.keySet().contains(vf.createIRI(object.get("id").toString())));
        }
    } catch (Exception e) {
        fail("Expected no exception, but got: " + e.getMessage());
    }
}