@Test
public void testCheckRules() {

    // Given
    when(rule1.evaluate(facts)).thenReturn(true);
    rules.register(rule1);
    rules.register(annotatedRule);
    // When
    Map<org.jeasy.rules.api.Rule, Boolean> result = rulesEngine.check(rules, facts);
    // Then
    assertThat(result).hasSize(2);
    for (org.jeasy.rules.api.Rule r : rules) {
        assertThat(result.get(r)).isTrue();
    }
}