// test with rep=2
responseStatus = webResource.path("resource3")
.path(arg1).path(arg2).queryParam("rep", "2").head().getStatus();
assertEquals("Response status 200 not found for request to resource 3 with rep=2", 200, responseStatus);
Form f = webResource.path("resource3")
.path(arg1).path(arg2).queryParam("rep", "2").get(Form.class);
assertEquals("FormURLEncodedRepresentation", f.getFirst("representation"));
assertEquals("Master Duke", f.getFirst("name"));
assertEquals("male", f.getFirst("sex"));
assertEquals("firstArg", f.getFirst("arg1"));
assertEquals("secondArg", f.getFirst("arg2"));
// test with rep>3
responseStatus = webResource.path("resource3")
.path(arg1).path(arg2).queryParam("rep", "4").head().getStatus();
assertEquals("Response status 200 not found for request to resource 3 with rep>3", 200, responseStatus);