@Test
void ThreeLevels()
{

    LogTree logTree = new LogTree();
    logTree.error(LogEvent.MARKER_BEGIN, "begin1");
    logTree.error("message11");
    logTree.error(LogEvent.MARKER_BEGIN, "begin12");
    logTree.error("message121");
    logTree.error("message122");
    logTree.error(LogEvent.MARKER_END, "end12");
    logTree.error(LogEvent.MARKER_END, "end1");
    logTree.error(LogEvent.MARKER_BEGIN, "begin2");
    logTree.error("message21");
    logTree.error(LogEvent.MARKER_BEGIN, "begin22");
    logTree.error("message221");
    logTree.error("message222");
    logTree.error(LogEvent.MARKER_END, "end22");
    logTree.error(LogEvent.MARKER_END, "end2");
    assertEquals(2, logTree.size(false));
    assertEquals(14, logTree.size(true));
    Iterator<LogEvent> iterator0 = logTree.iterator();
    LogTreeNode node1 = (LogTreeNode) iterator0.next();
    assertEquals(3, node1.size(false));
    assertEquals(6, node1.size(true));
    Iterator<LogEvent> iterator1 = node1.iterator();
    iterator1.next();
    LogTreeNode node11 = (LogTreeNode) iterator1.next();
    assertEquals(3, node11.size(false));
    assertEquals(3, node11.size(true));
}