/*
* Test requiring the SubmissionAddressing feature.
*/
public void testRequiredSubmissionAddressingFeature() throws Exception {
// Set the feature to be required
SubmissionAddressingFeature feature = new SubmissionAddressingFeature(true, true);
Service svc = Service.create(new QName("http://test", "TestService"));
svc.addPort(new QName("http://test", "TestPort"), SOAPBinding.SOAP11HTTP_BINDING, "http://localhost");
Dispatch<Source> d = svc.createDispatch(subEPR, Source.class, Service.Mode.PAYLOAD, feature);