@Test
  void withoutAnnotation() {
    KeyExtractor.Factory factory = KeyExtractor.fromAnnotation(MyAnnotation.class);
    Throwable ex = Assertions.assertThrows(IllegalArgumentException.class, () -> factory.create(WithoutAnnotation.class));
    check(ex.getMessage()).contains(MyAnnotation.class.getSimpleName());
  }
Check that annotation name is exposed in error message
criteria/common/test/org/immutables/criteria/backend/KeyExtractorTest.java