@Test
public void testTokenLevelStats_realCase() throws Exception {

    String result = IOUtils.toString(this.getClass().getResourceAsStream("/sample.wapiti.output.1.txt"), StandardCharsets.UTF_8);
    result = result.replace(System.lineSeparator(), "\n");
    Stats wordStats = EvaluationUtilities.tokenLevelStats(result);
    LabelStat labelstat1 = wordStats.getLabelStat("<body>");
    LabelStat labelstat2 = wordStats.getLabelStat("<headnote>");
    assertThat(labelstat1.getObserved(), is(378));
    assertThat(labelstat2.getObserved(), is(6));
    assertThat(labelstat1.getExpected(), is(378));
    assertThat(labelstat2.getExpected(), is(9));
    assertThat(labelstat1.getFalseNegative(), is(0));
    assertThat(labelstat2.getFalseNegative(), is(3));
    assertThat(labelstat1.getFalsePositive(), is(3));
    assertThat(labelstat2.getFalsePositive(), is(0));
}