fail("addRelation allowed when not registered");
ObjectName badRelation = null;
server.registerMBean(rs, service);
badRelation = new ObjectName("test:type=bad");
server.registerMBean(new Trivial(), badRelation);
caught = false;
try
{
rs.addRelation(badRelation);