@Deprecated
  @SuppressWarnings("deprecation")
  public void recordEviction() {
    // This method is scheduled for removal in version 3.0 in favor of recordEviction(weight)
    recordEviction(1);
  }
@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);
    }
  }