@Test
public void testCandidateSelection() {

    // Given
    Facts facts = new Facts();
    facts.put("foo", true);
    DummyRule dummyRule = new DummyRule();
    AnotherDummyRule anotherDummyRule = new AnotherDummyRule();
    Rules rules = new Rules(dummyRule, anotherDummyRule);
    RulesEngine rulesEngine = new InferenceRulesEngine();
    // When
    rulesEngine.fire(rules, facts);
    // Then
    assertThat(dummyRule.isExecuted()).isTrue();
    assertThat(anotherDummyRule.isExecuted()).isFalse();
}