@Test
public void testGetDocuments() throws Exception {

    List<Document> documents = new ArrayList<Document>();
    String id1 = UUID.randomUUID()
            .toString();
    Document document1 = new Document(id1, System.currentTimeMillis(), getMapper().getNodeFactory()
            .objectNode()
            .put("D", "data"));
    String id2 = UUID.randomUUID()
            .toString();
    Document document2 = new Document(id2, System.currentTimeMillis(), getMapper().getNodeFactory()
            .objectNode()
            .put("D", "data"));
    documents.add(document1);
    documents.add(document2);
    getQueryStore().save(TestUtils.TEST_TABLE_NAME, documents);
    getElasticsearchConnection().refresh(ElasticsearchUtils.getIndices(TestUtils.TEST_TABLE_NAME));
    String response = resources.client()
            .target(String.format("/v1/document/%s", TestUtils.TEST_TABLE_NAME))
            .queryParam("id", id1)
            .queryParam("id", id2)
            .request()
            .get(String.class);
    String expectedResponse = getMapper().writeValueAsString(documents);
    assertEquals(expectedResponse, response);
}