public void setNodeState(Node node, Node.State state) {
        nodeRepository.database().writeTo(state, node, Agent.system, Optional.empty());
    }
Moves a node directly to the given state without doing any validation, useful
to create wanted test scenario without having to move every node through series
of valid state transitions
node-repository/src/test/java/com/yahoo/vespa/hosted/provision/NodeRepositoryTester.java