}
@Test
public void testSOAPPBinding() throws Exception {
ServiceImpl service = new ServiceImpl(getBus(), null, serviceName, null);
service.addPort(portName, SOAPBinding.SOAP11HTTP_BINDING, "local://foobar");
Dispatch<Source> disp = service.createDispatch(portName, Source.class, Service.Mode.MESSAGE);
assertTrue(disp.getBinding() instanceof SOAPBinding);
}
@Test