Destination d = factory.getDestination(info);
assertTrue(d instanceof JettyHTTPDestination);
JettyHTTPDestination jd = (JettyHTTPDestination) d;
assertEquals("foobar", jd.getServer().getContentEncoding());
JettyHTTPServerEngine engine = (JettyHTTPServerEngine)jd.getEngine();
assertEquals(111, engine.getThreadingParameters().getMinThreads());
assertEquals(120, engine.getThreadingParameters().getMaxThreads());
ConduitInitiatorManager cim = bus.getExtension(ConduitInitiatorManager.class);
ConduitInitiator ci = cim.getConduitInitiator("http://schemas.xmlsoap.org/soap/http");
HTTPConduit conduit = (HTTPConduit) ci.getConduit(info);
assertEquals(97, conduit.getClient().getConnectionTimeout());
info.setName(new QName("urn:test:ns", "Bar"));
conduit = (HTTPConduit) ci.getConduit(info);
assertEquals(79, conduit.getClient().getConnectionTimeout());
JettyHTTPDestination jd2 =
(JettyHTTPDestination)factory.getDestination(
getEndpointInfo("foo", "bar", "http://localhost:9001"));
engine = (JettyHTTPServerEngine)jd2.getEngine();
assertEquals(99, engine.getThreadingParameters().getMinThreads());
assertEquals(777, engine.getThreadingParameters().getMaxThreads());
JettyHTTPDestination jd3 =
(JettyHTTPDestination)factory.getDestination(
getEndpointInfo("sna", "foo", "http://localhost:9100"));
engine = (JettyHTTPServerEngine)jd3.getEngine();
assertEquals(99, engine.getThreadingParameters().getMinThreads());
assertEquals(777, engine.getThreadingParameters().getMaxThreads());
}