MockBody body = new MockBody();
MockHeader header = new MockHeader("/path?a=query_A&b=query_B&c=query_C&d=query_D");
MockEntity entity = new MockEntity(body, header);
QueryBuilder builder = new QueryBuilder(request, entity);
Query form = builder.build();
assertEquals(form.getAll("a").size(), 2);
assertEquals(form.getAll("b").size(), 1);
assertEquals(form.getAll("c").size(), 2);
assertEquals(form.getAll("e").size(), 1);
assertEquals(form.get("a"), "query_A");
assertEquals(form.get("b"), "query_B");
assertEquals(form.get("c"), "query_C");
assertEquals(form.get("e"), "post_E");
}