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