@Test
public void shouldNotCloneDataservice() throws Exception {

    createDataservice(DATASERVICE_NAME);
    URI dataservicesUri = _uriBuilder.workspaceDataservicesUri();
    final URI uri = UriBuilder.fromUri( dataservicesUri )
                              .path( V1Constants.CLONE_SEGMENT )
                              .path( DATASERVICE_NAME )
                              .build();
    // Attempt to clone using the same service name should fail...
    ClientRequest request = request(uri, MediaType.APPLICATION_JSON_TYPE);
    addJsonConsumeContentType(request);
    addBody(request, DATASERVICE_NAME);
    ClientResponse<String> response = request.post(String.class);
    final String entity = response.getEntity();
    assertTrue(entity.contains("cannot be the same"));
}