Exchange e = new ExchangeImpl();
e.put(Service.class, new JAXRSServiceImpl(cris));
m.setExchange(e);
control.reset();
ServletDestination d = control.createMock(ServletDestination.class);
EndpointInfo epr = new EndpointInfo();
epr.setAddress(baseAddress);
epr.setProperty("org.apache.cxf.http.case_insensitive_queries", "false");
epr.setProperty("org.apache.cxf.endpoint.private", "false");
BindingInfo bi = control.createMock(BindingInfo.class);
bi.getProperties();
EasyMock.expectLastCall().andReturn(new HashMap<String, Object>()).anyTimes();
epr.setBinding(bi);
d.getEndpointInfo();
EasyMock.expectLastCall().andReturn(epr).anyTimes();
e.setDestination(d);
m.put(Message.REQUEST_URI, pathInfo);
m.put(Message.QUERY_STRING, query);
m.put(Message.HTTP_REQUEST_METHOD, "GET");