public void testEndpointAttributes() throws Exception {
MBeanServer mbeanServer = getMBeanServer();
Set<ObjectName> s = CastUtils.cast(mbeanServer.queryNames(new ObjectName(
"org.apache.camel:*,type=endpoints,name=\"some-ws-iti://data*\""), null));
ObjectName on = (ObjectName) s.toArray()[0];
assertEquals(SomeItiComponent.WS_CONFIG.isAddressing(),
((Boolean) mbeanServer.getAttribute(on, "Addressing")).booleanValue());
assertEquals(SomeItiComponent.WS_CONFIG.isMtom(),
((Boolean) mbeanServer.getAttribute(on, "Mtom")).booleanValue());
assertEquals(SomeItiComponent.WS_CONFIG.isSwaOutSupport(),
((Boolean) mbeanServer.getAttribute(on, "SwaOutSupport")).booleanValue());
}