@Override
    public void setMonochrome(boolean monochrome) {
        formats = monochrome ? monochrome() : ansi();
    }
@Test
    void should_print_tags() {
        Feature feature = TestFeatureParser.parse("path/test.feature", "" +
                "@feature_tag\n" +
                "Feature: feature name\n" +
                "  @scenario_tag\n" +
                "  Scenario: scenario name\n" +
                "    Then first step\n" +
                "  @scenario_outline_tag\n" +
                "  Scenario Outline: scenario outline name\n" +
                "    Then <arg> step\n" +
                "    @examples_tag\n" +
                "    Examples: examples name\n" +
                "      |  arg    |\n" +
                "      | second  |\n");

        ByteArrayOutputStream out = new ByteArrayOutputStream();
        Runtime.builder()
                .withFeatureSupplier(new StubFeatureSupplier(feature))
                .withAdditionalPlugins(new PrettyFormatter(out))
                .withRuntimeOptions(new RuntimeOptionsBuilder().setMonochrome().build())
                .withBackendSupplier(new StubBackendSupplier(
                    new StubStepDefinition("first step", "path/step_definitions.java:7"),
                    new StubStepDefinition("second step", "path/step_definitions.java:11")))
                .build()
                .run();

        assertThat(out, bytes(equalToCompressingWhiteSpace("" +

                "\n" +
                "@feature_tag @scenario_tag\n" +
                "Scenario: scenario name # path/test.feature:4\n" +
                "  Then first step       # path/step_definitions.java:7\n" +
                "\n" +
                "@feature_tag @scenario_outline_tag @examples_tag\n" +
                "Scenario Outline: scenario outline name # path/test.feature:12\n" +
                "  Then second step                      # path/step_definitions.java:11\n")));
    }