### Question:
Qualifiers implements JdbiConfig<Qualifiers> { private static Set<Annotation> getQualifiers(AnnotatedElement... elements) { return Arrays.stream(elements) .filter(Objects::nonNull) .map(AnnotatedElement::getAnnotations) .flatMap(Arrays::stream) .filter(anno -> anno.annotationType().isAnnotationPresent(Qualifier.class)) .collect(CollectionCollectors.toUnmodifiableSet()); } Qualifiers(); @Override void setRegistry(ConfigRegistry registry); QualifiedType<?> qualifiedTypeOf(ELEM type); Set<Annotation> findFor(AnnotatedElement... elements); @Override Qualifiers createCopy();  }### Answer:
@Test public void getQualifiers() throws Exception { Qualifiers qualifiers = new Qualifiers(); assertThat(foo(1)) .isEqualTo(foo(1)) .isNotEqualTo(foo(2)); assertThat(qualifiers.findFor(getClass().getDeclaredField("qualifiedField"))) .containsExactly(foo(1)); assertThat(qualifiers.findFor(getClass().getDeclaredMethod("qualifiedMethod"))) .containsExactly(foo(2)); assertThat(qualifiers.findFor(getClass().getDeclaredMethod("qualifiedParameter", String.class).getParameters()[0])) .containsExactly(foo(3)); assertThat(qualifiers.findFor(QualifiedClass.class)) .containsExactly(foo(4)); assertThat(qualifiers.findFor(QualifiedClass.class.getDeclaredConstructor(String.class).getParameters()[0])) .containsExactly(foo(5)); assertThat(qualifiers.findFor(getClass().getDeclaredField("twoQualifiers"))) .containsExactlyInAnyOrder(foo(6), bar("six")); }