@Test
public void testRuleEvaluationRun() {

    Collection<PolicyViolation> result = testee.evaluate(PolicyEngineTestdata.ARTIFACTS);
    assertThat(result).isNotNull();
    assertThat(result.size()).isEqualTo(2);
    Collection<String> ruleIds = result.stream().map(PolicyViolation::getId).distinct().collect(
            Collectors.toList());
    assertThat(ruleIds.size()).isEqualTo(1);
    ruleIds.forEach(ruleId -> assertThat(ruleId).isEqualTo(PolicyEngineTestdata.ALWAYS_VIOLATED_ID));
    result.stream().forEach(hashbase -> assertThat(hashbase.getViolationHash()).isEqualTo("msVGMmZSMtsiR8fbvd31Sw=="));
}