RangeIndex extends MultiValueIndex { public List<Object> lessThanOrEqualsTo(Object value) { List<Object> result = lessThan(value); equalsTo(value, result); return result; } 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 lessThanOrEqualsTo() { Object value = new Object(); doReturn(entry).when(map).lowerEntry(value); doReturn(result).when(rangeIndex).lessThan(value); doNothing().when(rangeIndex).equalsTo(value, result); rangeIndex.lessThanOrEqualsTo(value); verify(rangeIndex).lessThan(value); verify(rangeIndex).equalsTo(value, result); }