public List<HostResource> getHosts() {
        return model.hostSystem().getHosts();
    }
Retrieve the hosts available in this model. Useful to verify that hostnames are set correctly etc.

@return A list of hosts.
config-model/src/main/java/com/yahoo/config/model/test/TestRoot.java