GTETCriteria extends ArithmeticCriteria { public List<Object> meets(CacheIndex cacheIndex) { return cacheIndex.greaterThanOrEqualsTo(value); } GTETCriteria(String attributeName, Object value); List<Object> meets(CacheIndex cacheIndex);  }
@Test public void meets() { GTETCriteria criteria = new GTETCriteria("a", expectedValue); doReturn(result).when(cacheIndex).greaterThanOrEqualsTo(expectedValue); List<Object> actualResult = criteria.meets(cacheIndex); verify(cacheIndex).greaterThanOrEqualsTo(expectedValue); assertEquals(result, actualResult); }