// add non http endpoints as attachments
public void testNonHttpEndpointsToService() throws Exception {
ServiceManager serviceManager = new ServiceManager(registry);
Service service = serviceManager.newService(new QName("http://wso2.com/doadf/spidf", "myServisdfcxcde"));
serviceManager.addService(service);
EndpointManager endpointManager = new EndpointManager(registry);
Endpoint ep1 = endpointManager.newEndpoint("jms:/Service1");
endpointManager.addEndpoint(ep1);