@Override
    public int getPriority(final String nodeName) {
        if (nodeName.equals(nodeInfo.getThisNodeName())) {
            return 1;
        }
        return 0;
    }
Mock class that manages one node.
stroom-node/stroom-node-mock/src/main/java/stroom/node/mock/MockNodeService.java