@Test
public void getDatasetRecordTest() {

    Response response = target().path("datasets/" + encode(record1.getResource().stringValue())).request().get();
    assertEquals(response.getStatus(), 200);
    verify(datasetManager).getDatasetRecord(record1.getResource());
}