private Host createHost(String hostname, String version) {
        return new Host(hostname, List.of(), Optional.empty(), Optional.ofNullable(version).map(Version::fromString));
    }
Create the given number of hosts using the supplied versions--the last version is repeated as needed.
configserver/src/test/java/com/yahoo/vespa/config/server/deploy/HostedDeployTest.java