public void testSaveDocumentWithoutId() throws IOException, ServiceException {
RestSearchCloudClient client = new RestSearchCloudClient(new DefaultHttpClientFactory(), getUri(), "apikey");
String modelId = "test_SaveDocument";
Document document = new Document();
document.addString("title", "test");
Integer documentId = client.saveDocument(new SaveDocumentRequest(modelId, document));
Assert.assertNotNull(documentId);
}