// typed proxy interface
mbean.setSomething("Kissa");
assertTrue(mbean.getSomething().equals("Kissa"));
// detyped proxy interface
DynamicMBean mbean2 = (DynamicMBean)mbean;
mbean2.setAttribute(new Attribute("Something", "Koira"));
assertTrue(mbean2.getAttribute("Something").equals("Koira"));
// direct local server invocation
server.setAttribute(oname, new Attribute("Something", "Kissa"));
assertTrue(server.getAttribute(oname, "Something").equals("Kissa"));
// typed proxy interface invocation
mbean.doOperation();
assertTrue(mbean.isOperationInvoked());
mbean.reset();
// detyped proxy invocation
mbean2.invoke("doOperation", null, null);
assertTrue(((Boolean)mbean2.getAttribute("OperationInvoked")).booleanValue());
mbean2.invoke("reset", null, null);
// direct local server invocation
server.invoke(oname, "doOperation", null, null);
assertTrue(((Boolean)server.getAttribute(oname, "OperationInvoked")).booleanValue());
}