RangeIndex extends MultiValueIndex { public List<Object> lessThan(Object value) { NavigableMap<Object, Set<Object>> map = getMap(); return lower(map, map.lowerEntry(value)); } RangeIndex(); List<Object> lessThan(Object value); List<Object> lessThanOrEqualsTo(Object value); List<Object> greaterThan(Object value); List<Object> greaterThanOrEqualsTo(Object value); @SuppressWarnings("unchecked") List<Object> between(Object lowerBound, Object upperBound); NavigableMap<Object, Set<Object>> getMap();  }
@Test public void lessThan() { Object value = new Object(); doReturn(entry).when(map).lowerEntry(value); doReturn(result).when(rangeIndex).lower(map, entry); rangeIndex.lessThan(value); verify(rangeIndex).lower(map, entry); }