model.addData(20.0, 1);
model.addData(50.0, 2);
Iterator<HighlightEntry> it = model.getRangeValues(0.0, 100.0, 10.0);
assertTrue(it.hasNext());
HighlightEntry entry = it.next();
assertEquals("first entry", 1.0, entry.getKey());
assertEquals("first entry", 2, entry.getValue().intValue());
assertTrue(it.hasNext());
entry = it.next();
assertEquals("second entry", 20.0, entry.getKey());
assertEquals("second entry", 3, entry.getValue().intValue());
entry = it.next();
assertEquals("third entry", 50.0, entry.getKey());
assertEquals("third entry", 2, entry.getValue().intValue());
assertFalse(it.hasNext());
}