server.registerMBean(detector, objectName);
// don't call detector.start();
Thread.sleep(1000);
server.unregisterMBean(objectName);
detector.stop();
}
public void testCallingStopTwice() throws Exception
{
MulticastDetector detector = new MulticastDetector();