### Question:
WebSocketTransportFactory extends AbstractTransportFactory implements ConduitInitiator,
    DestinationFactory { public Destination getDestination(EndpointInfo endpointInfo, Bus bus) throws IOException { if (endpointInfo == null) { throw new IllegalArgumentException("EndpointInfo cannot be null"); } synchronized (registry) { AbstractHTTPDestination d = registry.getDestinationForPath(endpointInfo.getAddress()); if (d == null) { d = factory.createDestination(endpointInfo, bus, registry); if (d == null) { String error = "No destination available. The CXF websocket transport needs either the " + "Jetty WebSocket or Atmosphere dependencies to be available"; throw new IOException(error); } registry.addDestination(d); configure(bus, d); d.finalizeConfig(); } return d; } } WebSocketTransportFactory();  WebSocketTransportFactory(DestinationRegistry registry); DestinationRegistry getRegistry(); Conduit getConduit(EndpointInfo endpointInfo, Bus b); Conduit getConduit(EndpointInfo endpointInfo, EndpointReferenceType target, Bus bus); Destination getDestination(EndpointInfo endpointInfo, Bus bus); Set<String> getUriPrefixes(); static final List<String> DEFAULT_NAMESPACES; }### Answer:
@Test public void testGetDestination() throws Exception { Bus bus = BusFactory.getDefaultBus(); EndpointInfo ei = new EndpointInfo(); ei.setAddress("ws: WebSocketTransportFactory factory = bus.getExtension(WebSocketTransportFactory.class); assertNotNull(factory); Destination dest = factory.getDestination(ei, bus); assertNotNull(dest); }