EnumFeatureMetaData implements FeatureMetaData { @Override public FeatureState getDefaultFeatureState() { return defaultFeatureState.copy(); } EnumFeatureMetaData(Feature feature); @Override String getLabel(); @Override FeatureState getDefaultFeatureState(); @Override Set<FeatureGroup> getGroups(); @Override Map<String, String> getAttributes();  }
@Test public void constructorWillPopulateDefaultActivationStrategyFromAnnotations() throws Exception { EnumFeatureMetaData metaData = new EnumFeatureMetaData(TestFeatures.FEATURE_WITH_DEFAULT_STATE); FeatureState featureState = metaData.getDefaultFeatureState(); assertNotNull(featureState); assertTrue(featureState.isEnabled()); assertEquals("SomeActivationId", featureState.getStrategyId()); assertEquals("someValue1,someValue2", featureState.getParameter("SomeParameterName")); assertEquals("someValue3,someValue4", featureState.getParameter("SomeParameterName2")); }