destSrv, destPort);
TestRouter router = new TestRouter(null, def, rt);
router.init();
assertEquals(1, router.epList.size());
Endpoint ep = router.epList.get(0);
assertNotNull("Should have a Endpoint for Source Service", ep);
assertNotNull("Should have a wsdl model", ep.getMetadata());
Map<String, Object> props = ep.getProperties();
assertNotNull("Should have a wsdl model", props);
assertEquals(sourceSrv, props.get(Endpoint.WSDL_SERVICE));
QName portName = (QName) props.get(Endpoint.WSDL_PORT);
assertEquals(sourceSrv.getNamespaceURI(), portName.getNamespaceURI());
assertEquals(sourcePort, portName.getLocalPart());
Object impl = ep.getImplementor();
assertTrue("Should be instance of Provider<Source>",
impl instanceof Provider);
StreamSourceMessageProvider ssmp = (StreamSourceMessageProvider) impl;
assertNull("WebServiceContext is not set as endpoint is not published",
ssmp.getContext());