@Test
  public void testHTMLEntities() {
    // Objectives :
    // Ensure that HTMLEntites are correctly managed.

    String[] result =
        TestWikiTextParserGeneral.getTextSerializations(
            "specificElements/testHTMLEntities.textile");
    String actual = result[1];

    String expected = result[0];
    expected = expected.replace("<br/>", "\n");
    Assert.assertEquals(expected, actual);
  }
  @Test
  public void testTOCDetection() {
    // Objectives :
    // Ensure that TOC are correctly detected (see the textile File for details).

    String[] result =
        TestWikiTextParserGeneral.getTextSerializations("specificElements/tocDetection.textile");
    String actual = result[1];

    String expected = result[0];
    int indexToRemove = expected.indexOf("\n\nAnd this one also");
    expected = expected.substring(0, indexToRemove);
    expected += "And this one also";
    expected += "\n\n";
    expected += "{toc}\n";
    Assert.assertEquals(expected, actual);
  }