RecordCacheStats extends AbstractCacheStats { @Override public long getMaxTotalWeight() { return -1; } RecordCacheStats(
            @NotNull String name,
            @NotNull Supplier<CacheStats> stats,
            @NotNull Supplier<Long> elementCount,
            @NotNull Supplier<Long> weight); @Override long getElementCount(); @Override long getMaxTotalWeight(); @Override long estimateCurrentWeight();  }
@Test public void getMaxTotalWeight() { assertEquals(-1, cacheStats.getMaxTotalWeight()); }