{
File confFile = new File("resources/common/config/jaxws-endpoint-config.xml");
assertTrue(confFile.exists());
JBossWSConfigFactory factory = JBossWSConfigFactory.newInstance();
ConfigRootJAXWS config = (ConfigRootJAXWS)factory.parse(confFile.toURL());
assertNotNull("Null config", config);
EndpointConfigJAXWS epConfig = (EndpointConfigJAXWS)config.getConfigByName("Standard MTOM Endpoint");
assertTrue("Feature not set" , epConfig.hasFeature("http://org.jboss.ws/mtom"));
// disable feature
epConfig.setFeature("http://org.jboss.ws/mtom", false);
assertFalse("Feature still set", epConfig.hasFeature("http://org.jboss.ws/mtom"));