static FailureDisplayFormat create() {
        return ArchConfiguration.get().containsProperty(FAILURE_DISPLAY_FORMAT_PROPERTY)
                ? createInstance(ArchConfiguration.get().getProperty(FAILURE_DISPLAY_FORMAT_PROPERTY))
                : DEFAULT_FAILURE_DISPLAY_FORMAT;
    }
@Test
    public void configured_failure_display_format_is_used() {
        ArchConfiguration.get()
                .setProperty("failureDisplayFormat", TestFailureDisplayFormat.class.getName());

        FailureDisplayFormat failureDisplayFormat = FailureDisplayFormatFactory.create();

        assertThat(failureDisplayFormat).isInstanceOf(TestFailureDisplayFormat.class);

        String message = failureDisplayFormat.formatFailure(hasDescription("some-rule"),
                new FailureMessages(ImmutableList.of("some-failure"), Optional.empty()),
                Priority.LOW);

        assertThat(message).isEqualTo("test-format: some-rule has [some-failure] with priority LOW");
    }