@Test(expectedExceptions = InstanceAlreadyExistsException.class,
        expectedExceptionsMessageRegExp = "com\\.proofpoint\\.reporting:name=TestingObject is already registered")
public void testRegisterLegacyTwice()
        throws Exception
{

    registry.register(TESTING_REPORTED_BEAN, TESTING_OBJECT_NAME);
    registry.register(TESTING_REPORTED_BEAN, TESTING_OBJECT_NAME);
}