### Question:
HTTPTransportFactory extends AbstractTransportFactory implements ConduitInitiator, DestinationFactory { public Destination getDestination(EndpointInfo endpointInfo, Bus bus) throws IOException { if (endpointInfo == null) { throw new IllegalArgumentException("EndpointInfo cannot be null"); } r.lock(); try { synchronized (registry) { AbstractHTTPDestination d = registry.getDestinationForPath(endpointInfo.getAddress()); if (d == null) { HttpDestinationFactory jettyFactory = bus.getExtension(HttpDestinationFactory.class); String addr = endpointInfo.getAddress(); if (jettyFactory == null && addr != null && addr.startsWith("http")) { String m = new org.apache.cxf.common.i18n.Message("NO_HTTP_DESTINATION_FACTORY_FOUND", LOG).toString(); LOG.log(Level.SEVERE, m); throw new IOException(m); } HttpDestinationFactory factory = null; if (jettyFactory != null && (addr == null || addr.startsWith("http"))) { factory = jettyFactory; } else { factory = new ServletDestinationFactory(); } d = factory.createDestination(endpointInfo, bus, registry); registry.addDestination(d); configure(bus, d); d.finalizeConfig(); } return d; } } finally { r.unlock(); } } HTTPTransportFactory();  HTTPTransportFactory(DestinationRegistry registry); protected  HTTPTransportFactory(List<String> transportIds, DestinationRegistry registry); DestinationRegistry getRegistry(); void setRegistry(DestinationRegistry newRegistry); void setActivationNamespaces(Collection<String> ans); EndpointInfo createEndpointInfo(
        ServiceInfo serviceInfo,
        BindingInfo b,
        List<?>     ees
    ); void createPortExtensors(EndpointInfo ei, Service service); Set<String> getUriPrefixes(); Conduit getConduit(EndpointInfo endpointInfo, Bus bus); Conduit getConduit(
            EndpointInfo endpointInfo,
            EndpointReferenceType target,
            Bus bus
    ); Destination getDestination(EndpointInfo endpointInfo, Bus bus); static final List<String> DEFAULT_NAMESPACES; }### Answer:
@Test public void testGetDestination() { Bus bus = BusFactory.getDefaultBus(); EndpointInfo ei = new EndpointInfo(); ei.setAddress("http: HTTPTransportFactory factory = bus.getExtension(HTTPTransportFactory.class); if (factory != null) { try { factory.getDestination(ei, bus); fail("Expect exception here."); } catch (IOException ex) { assertTrue("We should find some exception related to the HttpDestination", ex.getMessage().indexOf("HttpDestinationFactory") > 0); } } }