@Test
  void multipleAnnotations() {
    KeyExtractor extractor = KeyExtractor.fromAnnotation(MyAnnotation.class).create(MultipleAnnotations.class);

    check(extractor.metadata().isKeyDefined());
    check(extractor.metadata().isExpression());
    check(extractor.metadata().keys()).hasSize(2);

    check((Iterable<String>) extractor.extract(new MultipleAnnotations("foo"))).isOf("foo", "getter:foo");
  }
Check that annotation name is exposed in error message
criteria/common/test/org/immutables/criteria/backend/KeyExtractorTest.java