@Override
    public List<String> getViolations(ArchRule rule) {
        String ruleDetailsFileName = storedRules.getProperty(rule.getDescription());
        checkArgument(ruleDetailsFileName != null, "No rule stored with description '%s'", rule.getDescription());
        List<String> result = readLines(ruleDetailsFileName);
        log.trace("Retrieved stored rule '{}' with {} violations: {}", rule.getDescription(), result.size(), result);
        return result;
    }
@Test
    public void throws_an_exception_if_violations_of_unstored_rule_are_requested() {
        ArchRule rule = defaultRule();

        assertThatThrownBy(() -> store.getViolations(rule))
                .isInstanceOf(IllegalArgumentException.class)
                .hasMessage("No rule stored with description '%s'", rule.getDescription());
    }