BindingProvider bp = (BindingProvider)proxy;
bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, axisEndpoint);
Binding b =(Binding) bp.getBinding();
WebServiceFeature wsFeature = b.getFeature(MTOMFeature.ID);
assertNotNull(wsFeature);
assertTrue("Expecting WSFeature to be enabled, but found disabled.", wsFeature.isEnabled());
assertTrue("Expecting WSFeature to be instance of MTOMFeature, but found WSFeature is not a MTOMFeature",wsFeature instanceof MTOMFeature);
assertTrue("Expecting Threshold value to be 1, but found"+ ((MTOMFeature)wsFeature).getThreshold(),((MTOMFeature)wsFeature).getThreshold()==1);
//so webservices feature is correctly set at this point.
//lets make sure attachments payloads are flowing correctly.