addRelation(server, service, support, "test:type=support1");
server.addNotificationListener(service, listener, null, null);
RelationService rs = (RelationService) services.get(service);
rs.sendRelationCreationNotification("id1");
on = new ObjectName("test:type=support1");
RelationNotification rn = listener.check(1);
assertEquals(new ArrayList(), rn.getMBeansToUnregister());
assertEquals(new ArrayList(), rn.getNewRoleValue());
assertEquals(on, rn.getObjectName());
assertEquals(new ArrayList(), rn.getOldRoleValue());
assertEquals("id1", rn.getRelationId());
assertEquals("relationTypeC", rn.getRelationTypeName());
assertEquals(null, rn.getRoleName());
}
finally
{
MBeanServerFactory.releaseMBeanServer(server);
}