String[] names = ann.value();
assertTrue(Arrays.equals(new String[]{"prop"}, names));
}
public void testMultipleNames() throws NoSuchMethodException {
Constructor ann = Foo1.class.getConstructor(String.class, String.class).getAnnotation(Constructor.class);
assertNotNull(ann);
String[] names = ann.value();
assertTrue(Arrays.equals(new String[]{"prop", "ref"}, names));
}