CacheStats extends AbstractCacheStats { @Override public long getElementCount() { return cache.size(); } @SuppressWarnings("unchecked")  CacheStats(
            @NotNull Cache<?, ?> cache,
            @NotNull String name,
            @Nullable Weigher<?, ?> weigher,
            long maxWeight); @Override long getElementCount(); @Override long estimateCurrentWeight(); @Override long getMaxTotalWeight();  }
@Test public void getElementCount() { assertEquals(KEYS + misses, cacheStats.getElementCount()); }