*/
protected void setUp() throws Exception
{
_managementServer = ManagementFactory.getPlatformMBeanServer();
ServiceGroupClient serviceGroup = getServiceGroupClient();
WsResourceClient [] members = serviceGroup.getMembers();
assertEquals(
"No resource has been yet created so how is " +
"it possible that service group children list is not empty?",
0,
members.length);
_managementServer.invoke(
Names.QPID_EMULATOR_OBJECT_NAME,
"createQueue",
new Object[]{_resourceObjectName = createResourceName()},
new String[]{ObjectName.class.getName()});
members = serviceGroup.getMembers();
assertEquals(
"One resource has just been created so " +
"I expect to find it on service group children list...",
1,
members.length);