@Test
    public void multilevel_nested_steps_are_displayed_in_the_report() throws UnsupportedEncodingException {
        getScenario().startScenario("test");

        given().something_with_multilevel_nested_steps();

        when().something_happens();

        then().something_has_happen()
            .something_else_not();

        String string = PlainTextReporter.toString(getScenario().getScenarioModel());
        assertThat(string.replaceAll(System.getProperty("line.separator"), "\n"))
            .contains(""
                + " Test\n"
                + "\n"
                + "   Given something with multilevel nested steps\n"
                + "           Given something with nested steps\n"
                + "             Given something\n"
                + "             And something else\n"
                + "           And something further\n"
                + "    When something happens\n"
                + "    Then something has happen\n"
                + "         something else not");
    }
Please note that we do explicitly <strong>not</strong> use the ScenarioTest class for JUnit,
as this would require a dependency to jgiven-junit, which we have to avoid
here.
jgiven-core/src/test/java/com/tngtech/jgiven/report/text/PlainTextReporterTest.java