Class<? extends Annotation> annotationClass) {
assertNotNull(
String.format("%s must be annotated with @TesterAnnotation.",
annotationClass),
annotationClass.getAnnotation(TesterAnnotation.class));
final Retention retentionPolicy =
annotationClass.getAnnotation(Retention.class);
assertNotNull(
String.format("%s must have a @Retention annotation.", annotationClass),
retentionPolicy);
assertEquals(
String.format("%s must have RUNTIME RetentionPolicy.", annotationClass),
RetentionPolicy.RUNTIME, retentionPolicy.value());
assertNotNull(
String.format("%s must be inherited.", annotationClass),
annotationClass.getAnnotation(Inherited.class));
for (String propertyName : new String[]{"value", "absent"}) {