### Question:
First extends Activation { public First() { this(1); } First();  First(int numberOfRules);  First(int numberOfRules, double threshold); @Override String parameters(); @Override void configure(String parameters); @Override void activate(RuleBlock ruleBlock); int getNumberOfRules(); void setNumberOfRules(int numberOfRules); double getThreshold(); void setThreshold(double threshold); @Override First clone();  }### Answer:
@Test public void testFirst() { Engine engine = Console.mamdani(); InputVariable ambient = engine.getInputVariable(0); ambient.setValue(0.7); RuleBlock ruleBlock = engine.getRuleBlock(0); ruleBlock.setActivation(new First(1)); engine.process(); List<Rule> rules = engine.getRuleBlock(0).getRules(); Assert.assertThat("First rule was not activated", rules.get(0).isTriggered(), is(false)); Assert.assertThat("Second rule was activated", rules.get(1).isTriggered(), is(true)); Assert.assertThat("Third rule was not activated", rules.get(2).isTriggered(), is(false)); }