public void testUnregisterMBeanOnExceptionFromPreDeregister3() throws Exception
{
MBeanServer server = MBeanServerFactory.newMBeanServer();
ObjectName name = new ObjectName("test:foo=bar");
server.registerMBean(new LockedTest3(), name);
try
{
server.unregisterMBean(name);