### Question:
AnnotationExtractor { static public <E extends Enum<?>> String[] getLocaleNames(Class<E> enumClass) { Locale[] localeDataArray = getLocaleData(enumClass); if (localeDataArray == null) { return null; } String[] names = new String[localeDataArray.length]; for (int i = 0; i < localeDataArray.length; i++) { names[i] = localeDataArray[i].value(); } return names; }  static String getBaseName(Class<E> enumClass); static String[] getLocaleNames(Class<E> enumClass); static Locale[] getLocaleData(Class<E> enumClass); static String getCharset(Class<?> enumClass,
      java.util.Locale juLocale);  }### Answer:
@Test public void localeNames() { String[] result = AnnotationExtractor.getLocaleNames(Fruit.class); assertTrue(Arrays.equals(new String[] {"fr", "en"}, result)); }