@Test
public void testUnRegisterLegacy()
        throws Exception
{

    registry.register(TESTING_REPORTED_BEAN, TESTING_OBJECT_NAME);
    registry.unregisterLegacy(ObjectName.getInstance("com.proofpoint.reporting", "name", "TestingObject"));
    assertEquals(registry.getReportedBeans(), ImmutableList.of());
}