@Override
  public void recordEviction(@NonNegative int weight, RemovalCause cause) {
    evictionsWithCause.get(cause).update(weight);
    evictionWeight.inc(weight);
  }
@Test
  public void evictionWithCause() {
    // With JUnit 5, this would be better done with @ParameterizedTest + @EnumSource
    for (RemovalCause cause : RemovalCause.values()) {
      stats.recordEviction(3, cause);
      assertThat(registry.histogram(PREFIX + ".evictions." + cause.name()).getCount()).isEqualTo(1);
    }
  }