assertEquals("Mismatched type for " + keyName, expType, actType);
List<IDataPoint> dpList = mb.getPoints(keyName);
assertEquals("Mismatched points size for " + keyName + " - " + dpList, 1, ListUtil.size(dpList));
IDataPoint dp = dpList.get(0);
assertEquals("Mismatched timestamp for " + keyName, expValue.getTime(), dp.getTime());
switch (actType) {
case COUNTER:
assertEquals("Mismatched value for " + keyName, 1.0d, dp.getValue(), 0.000001d);
break;
case GAUGE:
assertEquals("Mismatched value for " + keyName, expValue.getValue(), dp.getValue(), 0.000001d);
break;
default:
fail("Unknown value type for " + keyName + ": " + actType);
}