@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);
  }
}