@Test
  public void testParseCorrectlyOrderedNestedLevels() {
    OrderedListNode orderedListNode = (OrderedListNode) parseBaseListNode("list-10.creole");

    Assert.assertEquals(7, orderedListNode.getChildASTNodesCount());

    int level1Count = 0;
    int level2Count = 0;

    for (ASTNode astNode : orderedListNode.getChildASTNodes()) {
      OrderedListItemNode orderedListItemNode = (OrderedListItemNode) astNode;

      int currentLevel = orderedListItemNode.getLevel();

      if (currentLevel == 1) {
        level1Count += currentLevel;
      } else if (currentLevel == 2) {
        level2Count += currentLevel;
      } else {
        Assert.fail("Parsed has not been achieved correctly");
      }
    }

    Assert.assertEquals(level1Count, 3 * 1);
    Assert.assertEquals(level2Count, 4 * 2);
  }
 public void visit(OrderedListItemNode orderedListItemNode) {
   traverse(orderedListItemNode.getChildASTNodes(), "<li>", "</li>");
 }