@Test
public void getDatasetRecordsTest() {

    Response response = target().path("datasets").request().get();
    assertEquals(response.getStatus(), 200);
    verify(datasetManager).getDatasetRecords(any(DatasetPaginatedSearchParams.class));
    verify(service, atLeastOnce()).skolemize(any(Statement.class));
    try {
        JSONArray result = JSONArray.fromObject(response.readEntity(String.class));
        assertEquals(result.size(), 3);
    } catch (Exception e) {
        fail("Expected no exception, but got: " + e.getMessage());
    }
}