Set<String> types = proc.getSupportedAnnotationTypes();
Package expectedPkg = I18NMessage.class.getPackage();
for (final String type : types) {
Class<?> clazz = Class.forName(type);
Retention retention = clazz.getAnnotation(Retention.class);
assertNotNull(retention);
Documented documented = clazz.getAnnotation(Documented.class);
assertNotNull(documented);
assertEquals(RetentionPolicy.SOURCE, retention.value());
assertTrue(clazz.isAnnotation());
assertTrue(clazz.isInterface());
assertEquals(expectedPkg, clazz.getPackage());
}
}