@Test
public void testSaveDocuments() throws Exception {

    List<Document> documents = new ArrayList<Document>();
    String id1 = UUID.randomUUID().toString();
    Document document1 = new Document(id1, System.currentTimeMillis(), factory.objectNode().put("D", "data"));
    String id2 = UUID.randomUUID().toString();
    Document document2 = new Document(id2, System.currentTimeMillis(), factory.objectNode().put("D", "data"));
    documents.add(document1);
    documents.add(document2);
    client().resource(String.format("/v1/document/%s/bulk", TestUtils.TEST_TABLE_NAME)).type(MediaType.APPLICATION_JSON_TYPE).post(documents);
    compare(document1, queryStore.get(TestUtils.TEST_TABLE_NAME, id1));
    compare(document2, queryStore.get(TestUtils.TEST_TABLE_NAME, id2));
}