System.setProperty(SystemProperties.P6SPY_PREFIX + P6SpyOptions.MODULELIST,
P6OutageFactory.class.getName());
P6SpyOptions.getActiveInstance().reload();
}
final P6OutageLoadableOptions opts = P6OutageOptions.getActiveInstance();
Assert.assertNotNull(opts);
Assert.assertFalse(opts.getOutageDetection());
Assert.assertEquals(30L, opts.getOutageDetectionInterval());
Assert.assertEquals(30000L, opts.getOutageDetectionIntervalMS());
// cleanup - make sure go back to default modules
{
System.getProperties().remove(SystemProperties.P6SPY_PREFIX + P6SpyOptions.MODULELIST);
P6SpyOptions.getActiveInstance().reload();