@Test
public void testLegacyExportObjectNameDuplicate()
{

    try {
        reportExporter.export(TESTING_OBJECT_NAME, TESTING_OBJECT);
        reportExporter.export(TESTING_OBJECT_NAME, TESTING_OBJECT);
        fail("expected ReportException");
    }
    catch (ReportException e) {
        assertEquals(e.getReason(), Reason.INSTANCE_ALREADY_EXISTS);
        assertEquals(e.getMessage(), "com.proofpoint.reporting:name=TestingObject is already registered");
    }
}