FeatureAnnotations { public static String getLabel(Feature feature) { Label label = getAnnotation(feature, Label.class); if (label != null) { return label.value(); } return feature.name(); }  static String getLabel(Feature feature); static boolean isEnabledByDefault(Feature feature); static boolean isAnnotationPresent(Feature feature, Class<? extends Annotation> annotationType); static Set<Annotation> getAnnotations(Feature feature); static A getAnnotation(Feature feature, Class<A> annotationType); static String[] getFeatureAttribute(Annotation annotation);  }
@Test void testGetLabel() { assertEquals("Some feature with a label", FeatureAnnotations.getLabel(MyFeature.FEATURE_WITH_LABEL)); assertEquals("FEATURE_WITHOUT_LABEL", FeatureAnnotations.getLabel(MyFeature.FEATURE_WITHOUT_LABEL)); }