@Test
public void testGetDocuments() 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);
    queryStore.save(TestUtils.TEST_TABLE_NAME, documents);
    String response = client().resource(String.format("/v1/document/%s", TestUtils.TEST_TABLE_NAME))
            .queryParam("id", id1)
            .queryParam("id", id2)
            .get(String.class);
    String expectedResponse = mapper.writeValueAsString(documents);
    assertEquals(expectedResponse, response);
}