@Test
public void shouldGetDataservice() throws Exception {

    createDataservice(DATASERVICE_NAME);
    // get
    Properties settings = _uriBuilder.createSettings(SettingNames.DATA_SERVICE_NAME, DATASERVICE_NAME);
    _uriBuilder.addSetting(settings, SettingNames.DATA_SERVICE_PARENT_PATH, _uriBuilder.workspaceDataservicesUri());
    URI uri = _uriBuilder.dataserviceUri(LinkType.SELF, settings);
    ClientRequest request = request(uri, MediaType.APPLICATION_JSON_TYPE);
    ClientResponse<String> response = request.get(String.class);
    final String entity = response.getEntity();
    assertThat(entity, is(notNullValue()));
    RestDataservice dataservice = KomodoJsonMarshaller.unmarshall(entity, RestDataservice.class);
    assertNotNull(dataservice);
    
    assertEquals(dataservice.getId(), DATASERVICE_NAME);
}