@Test
public void testWadlQuery() {
Message m = mockMessage("http://localhost:8080/bar", "/bar", "_wadl", "GET");
ClassResourceInfo cri =
ResourceUtils.createClassResourceInfo(TestResource.class, TestResource.class, true, true);
m.getExchange().put(Service.class, new JAXRSServiceImpl(Collections.singletonList(cri)));
RequestPreprocessor sqh = new RequestPreprocessor();
sqh.preprocess(m, new UriInfoImpl(m, null));
Response r = m.getExchange().get(Response.class);
assertNotNull(r);
assertEquals(WadlGenerator.WADL_TYPE.toString(),