new ObjectName("DefaultDomain:description=Printer,type=ink"));
server.registerMBean(new Trivial(),
new ObjectName("MyDomain:description=Disk,capacity=2"));
server.registerMBean(new Trivial(),
new ObjectName("DefaultDomain:description=Disk,capacity=1"));
resultMBeans = server.queryMBeans(new ObjectName("*:description=Printer,type=laser,*"), null);
resultNames = server.queryNames(new ObjectName("*:description=Printer,type=laser,*"), null);
}
catch (Exception e)
{
fail(e.toString());