ObjectName dsService = new ObjectName("jboss.test:service=DistributedStateTestCase");
IDistributedState ds0 = (IDistributedState)
MBeanServerInvocationHandler.newProxyInstance(server0, dsService,
IDistributedState.class, true);
TestListener listener0 = new TestListener();
server0.addNotificationListener(dsService, listener0, null, null);
ds0.put("key0", "value0");
String value = (String) ds0.get("key0");
log.info("server0: get(key0): "+value);
assertTrue("server0: value == value0", value.equals("value0"));