RestSearchCloudClient client = new RestSearchCloudClient(
new DefaultHttpClientFactory(),
URI.create("http://localhost:" + port), "apikey"
);
UserModelId modelId = new UserModelId(new UserId("test"), "testGetDocument");
DocumentId docId = new DocumentId(10);
Document document = client.getDocument(new GetDocumentRequest(modelId, docId));
Assert.assertNotNull(document);
Assert.assertEquals(document.getId(), docId);