Assert.assertTrue(lastRecord.get("(localhost_12921.TestStat@DB#db1.TestMetric2)GREATER(100)").equals("ON"));
int [] metrics3 = {21, 44, 22, 14, 16};
int [] metrics4 = {122, 115, 222, 41,16};
setHealthData(metrics3, metrics4);
task.run();
Thread.sleep(100);
history = helixDataAccessor.getProperty(keyBuilder.alertHistory()).getRecord();
// new delta should be recorded
Assert.assertEquals(history.getMapFields().size(), 2 + historySize);
recordMap = new TreeMap<String, Map<String, String>>();