assertEquals(FeatureState.DISABLED, featureService.getFeatureState("test.item"));
}
@Test
public void testHieraclicalFeaturesChildAndParentHaveDifferentStatuses2() {
FeatureDescriptor item = mock(FeatureDescriptor.class);
when(item.process(any(ContextManager.class))).thenReturn(FeatureState.DISABLED);
when(propertyReader.getFeatureDescriptor(eq("test.item"))).thenReturn(item);
FeatureDescriptor parent = mock(FeatureDescriptor.class);
when(parent.process(any(ContextManager.class))).thenReturn(FeatureState.ENABLED);
when(propertyReader.getFeatureDescriptor(eq("test"))).thenReturn(parent);
assertEquals(FeatureState.DISABLED, featureService.getFeatureState("test.item"));
}