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