@Test
public void testGetDocument() throws Exception {

    String id = UUID.randomUUID().toString();
    Document document = new Document(id, System.currentTimeMillis(), factory.objectNode().put("D", "data"));
    queryStore.save(TestUtils.TEST_TABLE_NAME, document);
    Document response = client().resource(String.format("/v1/document/%s/%s", TestUtils.TEST_TABLE_NAME, id))
            .get(Document.class);
    compare(document, response);
}