@Test
public void testSaveDocument() throws Exception {

    String id = UUID.randomUUID().toString();
    Document document = new Document(
            id,
            System.currentTimeMillis(),
            factory.objectNode().put("hello", "world"));
    client().resource("/v1/document/" + TestUtils.TEST_TABLE_NAME).type(MediaType.APPLICATION_JSON_TYPE).post(document);
    Document response = queryStore.get(TestUtils.TEST_TABLE_NAME, id);
    compare(document, response);
}