@Override
    public void clear() {
        history.clear();
    }
@Test
    void testClear() {
        TreeMapLogHistory<String> history = new TreeMapLogHistory<>();
        history.addAt(100, "100");
        history.addAt(200, "200");
        history.clear();
        assertEquals(Optional.empty(), history.lastEntry());
    }