public void testToQueryString() throws Exception {
Date from = toDate("2010-07-23T15:56:44");
Date to = toDate("2010-07-23T16:16:44");
Query q = new Query().between(from, to);
q.filter("service", "WFS", Comparison.EQ).and("status", "RUNNING", Comparison.EQ)
.and("path", Arrays.asList("/foo", "/bar"), Comparison.IN);
String qs = RequestResource.toQueryString(q);
assertEquals('?', qs.charAt(0));
qs = qs.substring(1);