assertTrue(confFile.exists());
JBossWSConfigFactory factory = JBossWSConfigFactory.newInstance();
ConfigRootJAXRPC config = (ConfigRootJAXRPC)factory.parse(confFile.toURL());
assertNotNull("Null config", config);
CommonConfigJAXRPC epConfig = (CommonConfigJAXRPC)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"));
}