UidRange implements Iterable<MessageUid> { public MessageRange toMessageRange() { return range; } UidRange(MessageUid singleVal);  UidRange(MessageUid minValue, MessageUid messageUid); static String toString(UidRange[] ranges); static List<UidRange> mergeRanges(List<UidRange> ranges); MessageUid getLowVal(); MessageUid getHighVal(); boolean includes(MessageUid value); int hashCode(); boolean equals(Object obj); String toString(); String getFormattedString(); @Override Iterator<MessageUid> iterator(); MessageRange toMessageRange();  }
@Test public void toMessageRangeShouldContainSameValues() { assertThat(new UidRange(_1, _4).toMessageRange()).isEqualTo(MessageRange.range(_1, _4)); }