HttpRequest httpRequest = server.client().authenticatedAs("admin").GET(
"/api/params/query/2" +
"?a=" + URLEncoder.encode("2013-11-20T14:00:00.000+01:00", "UTF-8") +
"&b=" + URLEncoder.encode("2013-12-20T14:00:00.000+01:00", "UTF-8"));
assertThat(httpRequest.code()).isEqualTo(200);
assertThat(httpRequest.body().trim()).isEqualTo("a=2013-11-20T13:00:00.000Z b=2013-12-20T13:00:00.000Z");
}
@Test
public void should_return_query_params_datetime_without_optional() throws Exception {
HttpRequest httpRequest = server.client().authenticatedAs("admin").GET(