assertEquals(MessageRange.Type.FROM, ranges.get(0).getType());
}
@Test
public void testSplitRange() {
MessageRange range = MessageRange.range(1,10);
List<MessageRange> ranges = range.split(3);
assertEquals(4, ranges.size());
checkRange(1, 3, ranges.get(0));
assertEquals(MessageRange.Type.RANGE, ranges.get(0).getType());
checkRange(4, 6, ranges.get(1));
assertEquals(MessageRange.Type.RANGE, ranges.get(1).getType());