FeatureContext { public boolean hasFeature(String key) { return key != null && !"".equals(key) && featureMap.get(key) != null; } FeatureContext(Configuration config); Feature addFeature(String key); Feature addFeature(Feature feature); boolean hasFeature(String key); boolean featureHasStatus(String key, FeatureStatus status); void clear(); int size(); Configuration getConfig();  }
@Test public void hasFeature_WithString_ReturnsFalse() { assertFalse("context should not have feature with name 'test.feature'", context.hasFeature("test.feature")); }
@Test public void hasFeature_WithoutString_ReturnsFalse() { assertFalse("context should return false if no feature argument is set", context.hasFeature(null)); }