QueryPostRequest extends PostRequest { @Override public Type getRequestType() { return Type.QUERY_POST; } QueryPostRequest(HttpHeaders headers, RequestBody body, UriInfo uriInfo, ResourceInstance resource); @Override Type getRequestType();  }
@Test public void testRequestType() throws Exception { Request r = new QueryPostRequest(null, new RequestBody(), null, null); assertSame(Request.Type.QUERY_POST, r.getRequestType()); }