CacheStats extends AbstractCacheStats { @Override public long getMaxTotalWeight() { return maxWeight; } @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 getMaxTotalWeight() { assertEquals(Long.MAX_VALUE, cacheStats.getMaxTotalWeight()); }