class AnsiParser {

    public static Stack<TextLeaf> parseText(String text) {
        return new AnsiParser().parse(text);
    }

}

class AnsiParserTest {

    @Test
    public void parseTextBackspace() throws Exception {

        assertEquals(AnsiParser.parseText("Hello World\b\b\b\b\b\n\bMars"), new TextLeaf("Hello Mars"));
    }

}