### Question:
PassThroughHttpListener implements TransportListener { public EndpointReference[] getEPRsForService(String serviceName, String ip) throws AxisFault { String trailer = ""; boolean isServiceWithCustomURI = isServiceWithCustomURI(serviceName); if (serviceName.indexOf('/') != -1) { trailer += serviceName.substring(serviceName.indexOf("/")); serviceName = serviceName.substring(0, serviceName.indexOf('/')); } if (serviceName.indexOf('.') != -1 && !isServiceWithCustomURI) { trailer += serviceName.substring(serviceName.indexOf(".")); serviceName = serviceName.substring(0, serviceName.indexOf('.')); }else if(isServiceWithCustomURI){ serviceName = getServiceNameFromServiceWithCustomURI(serviceName); } EndpointReference[] endpointReferences = new EndpointReference[1]; if (serviceNameToEPRMap.containsKey(serviceName)) { endpointReferences[0] = new EndpointReference( sourceConfiguration.getCustomEPRPrefix() + serviceNameToEPRMap.get(serviceName) + trailer); } else { endpointReferences[0] = new EndpointReference(sourceConfiguration.getServiceEPRPrefix() + serviceName + trailer); } return endpointReferences; }  void init(ConfigurationContext cfgCtx, TransportInDescription transportInDescription); void start(); EndpointReference getEPRForService(String serviceName, String ip); EndpointReference[] getEPRsForService(String serviceName, String ip); SessionContext getSessionContext(MessageContext messageContext); void stop(); void destroy(); void pause(); void resume(); void reload(final TransportInDescription transportIn); void reloadSpecificEndPoints(final TransportInDescription transportIn); void maintenanceShutdown(long milliSecs); String getTransportName(); void reloadDynamicSSLConfig(TransportInDescription transportInDescription); static final long ACTIVE_CONNECTION_MONITOR_DELAY; }### Answer:
@Test public void testGetEPRsForService() throws Exception { EndpointReference[] endpointReference = passThroughHttpListener.getEPRsForService("myservice", HOST); Assert.assertNotNull(endpointReference); Assert.assertEquals("Endpoint reference mismatched", getServiceEndpoint("myservice"), endpointReference[0].getAddress()); endpointReference = passThroughHttpListener.getEPRsForService("t/myservice", HOST); Assert.assertNotNull(endpointReference); Assert.assertEquals("Endpoint reference mismatched", getServiceEndpoint("t/myservice"), endpointReference[0].getAddress()); endpointReference = passThroughHttpListener.getEPRsForService("myservice.endpoint", HOST); Assert.assertNotNull(endpointReference); Assert.assertEquals("Endpoint reference mismatched", getServiceEndpoint("myservice.endpoint"), endpointReference[0].getAddress()); }