Binding binding = definition.getBinding(new QName(namespace, "PortTypeSoap12"));
Assert.assertNotNull("No binding created", binding);
Assert.assertEquals("Invalid port type", portType, binding.getPortType());
Assert.assertEquals("Invalid amount of extensibility elements", 1, binding.getExtensibilityElements().size());
SOAP12Binding soapBinding = (SOAP12Binding) binding.getExtensibilityElements().get(0);
Assert.assertEquals("Invalid style", "document", soapBinding.getStyle());
Assert.assertEquals("Invalid amount of binding operations", 1, binding.getBindingOperations().size());
BindingOperation bindingOperation = binding.getBindingOperation("Operation", "Input", "Output");
Assert.assertNotNull("No binding operation created", bindingOperation);
Assert.assertEquals("Invalid amount of extensibility elements", 1,