@Test
public void testJMXUnregisterNoName() throws SecurityException, NoSuchFieldException, IllegalArgumentException, IllegalAccessException, InstanceAlreadyExistsException, MBeanRegistrationException, NotCompliantMBeanException, InstanceNotFoundException{

	MBeanServer mockMbs = EasyMock.createNiceMock(MBeanServer.class);
	Field field = testClass.getClass().getDeclaredField("mbs");
	field.setAccessible(true);
	field.set(testClass, mockMbs);
	expect(mockConfig.getPoolName()).andReturn(null).anyTimes(); 
	ObjectInstance mockInstance = EasyMock.createNiceMock(ObjectInstance.class);

	reset(mockMbs, mockInstance, mockConfig);
	expect(mockMbs.isRegistered((ObjectName)anyObject())).andReturn(true).anyTimes();
	mockMbs.unregisterMBean((ObjectName)anyObject());
	replay(mockMbs, mockInstance, mockConfig);
	testClass.registerUnregisterJMX(false);
	verify(mockMbs);
}