FeatureContext { public void clear() { featureMap.clear(); } 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 clear() throws Exception { context.addFeature("test.feature"); context.clear(); assertFalse("context should have no feature", context.hasFeature("test.feature")); }