@Test
public void shouldNotGenerateViewDdlForSingleTableMissingParameter() throws Exception {

    loadVdbs();
    createDataservice(DATASERVICE_NAME);
    
    URI dataservicesUri = _uriBuilder.workspaceDataservicesUri();
    URI uri = UriBuilder.fromUri(dataservicesUri).path(V1Constants.SERVICE_VIEW_DDL_FOR_SINGLE_TABLE).build();
    // Required parms (dataserviceName, tablePath).
    // fails due to missing table path
    KomodoDataserviceUpdateAttributes updateAttr = new KomodoDataserviceUpdateAttributes();
    updateAttr.setDataserviceName(DATASERVICE_NAME);
    ClientRequest request = request(uri, MediaType.APPLICATION_JSON_TYPE);
    addJsonConsumeContentType(request);
    addBody(request, updateAttr);
    ClientResponse<String> response = request.post(String.class);
    // Bogus DDL results in an error
    final String entity = response.getEntity();
    assertTrue(entity.contains("missing one or more required parameters"));
}