### Question:
JAXWSHttpSpiDestination extends AbstractHTTPDestination { protected void doService(HttpServletRequest req, HttpServletResponse resp) throws IOException { Bus origBus = BusFactory.getAndSetThreadDefaultBus(bus); try { serviceRequest(req, resp); } catch (Exception e) { e.printStackTrace(); } finally { if (origBus != bus) { BusFactory.setThreadDefaultBus(origBus); } } } JAXWSHttpSpiDestination(Bus b,
                                   DestinationRegistry registry,
                                   EndpointInfo ei);   }### Answer:
@Test public void testMessage() throws Exception { HttpExchange exchange = setUpExchange(); control.replay(); JAXWSHttpSpiDestination destination = new JAXWSHttpSpiDestination(bus, new DestinationRegistryImpl(), endpoint); destination.setMessageObserver(observer); destination.doService(new HttpServletRequestAdapter(exchange), new HttpServletResponseAdapter(exchange)); control.verify(); }