private void recordRestart(Node node, NodeRepository nodeRepository) {
        var upEvent = new History.Event(History.Event.Type.up, Agent.system, nodeRepository.clock().instant());
        try (var locked = nodeRepository.nodes().lockAndGetRequired(node)) {
            nodeRepository.nodes().write(locked.node().with(locked.node().history().with(upEvent)), locked);
        }
    }
Tests the autoscaling maintainer integration.
The specific recommendations of the autoscaler are not tested here.

@author bratseth
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/maintenance/AutoscalingMaintainerTest.java