@PublicAPI(usage = ACCESS)
    public static FreezingArchRule freeze(ArchRule rule) {
        return new FreezingArchRule(rule, ViolationStoreFactory.create(), ViolationLineMatcherFactory.create());
    }
@Test
    public void rejects_illegal_ViolationStore_configuration() {
        String wrongConfig = "SomeBogus";
        ArchConfiguration.get().setProperty("freeze.store", wrongConfig);
        ArchRule someRule = rule("some description").withoutViolations().create();

        assertThatThrownBy(() -> freeze(someRule))
                .isInstanceOf(StoreInitializationFailedException.class)
                .hasMessageContaining("freeze.store=" + wrongConfig);
    }