public void addNodeOnlyEvent(NodeEvent e, java.util.logging.Level level) {
        log.log(level, "Added node only event: " + e.toString());
        metricUpdater.recordNewNodeEvent();
        LinkedList<NodeEvent> nodeList = nodeLog.computeIfAbsent(e.getNode().getNode(), k -> new LinkedList<>());
        nodeList.add(e);
        if (nodeList.size() > maxNodeSize) {
            nodeList.remove(0);
        }
    }
@Test
    void testMetric() {
        initialize(metricUpdater);

        eventLog.addNodeOnlyEvent(nodeEvent, Level.INFO);

        verify(metricUpdater).recordNewNodeEvent();
        verifyNoMoreInteractions(metricUpdater);
    }