private static boolean hostNameExists(HostSystem hostSystem, String hostname) {
        return hostSystem.getHosts().stream().map(HostResource::getHost).anyMatch(host -> host.getHostname().equals(hostname));
    }
Recreate the combination used in some factory tests
config-model/src/test/java/com/yahoo/config/model/provision/ModelProvisioningTest.java