@Test
public void shouldGetDataservices() throws Exception {

    createDataservice(DATASERVICE_NAME);
    // get
    URI uri = _uriBuilder.workspaceDataservicesUri();
    ClientRequest request = request(uri, MediaType.APPLICATION_JSON_TYPE);
    ClientResponse<String> response = request.get(String.class);
    assertNotNull(response.getEntity());
    final String entities = response.getEntity();
    assertThat(entities, is(notNullValue()));
    // make sure the Dataservice JSON document is returned for each dataservice
    RestDataservice[] dataservices = KomodoJsonMarshaller.unmarshallArray(entities, RestDataservice[].class);
    assertEquals(1, dataservices.length);
    RestDataservice myService = dataservices[0];
    assertNotNull(myService.getId());
    assertTrue(DATASERVICE_NAME.equals(myService.getId()));
    assertNotNull(myService.getDataPath());
    assertNotNull(myService.getkType());
}