9899100101102103104105106107108
@Test public void testEnableFeature() { FF4j ff4j = new FF4j(); ff4j.autoCreate(true); ff4j.enable("newffff"); Assert.assertTrue(ff4j.exist("newffff")); Assert.assertTrue(ff4j.check("newffff")); } @Test(expected = FeatureNotFoundException.class)