FeatureAnnotations { public static boolean isEnabledByDefault(Feature feature) { return isAnnotationPresent(feature, EnabledByDefault.class); }  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 testIsEnabledByDefault() { assertFalse(FeatureAnnotations.isEnabledByDefault(MyFeature.FEATURE_WITH_LABEL)); assertFalse(FeatureAnnotations.isEnabledByDefault(MyFeature.FEATURE_WITHOUT_LABEL)); assertTrue(FeatureAnnotations.isEnabledByDefault(MyFeature.FEATURE_ENABLED_BY_DEFAULT)); }