private FederationConfig.Target getTarget(List<FederationConfig.Target> targets, String chainId) {
        for (FederationConfig.Target target : targets) {
            if (target.id().equals(chainId))
                return target;
        }
        fail("No target with id " + chainId);
        return null;
    }
Test generated config for federation.
@author Tony Vaagenes
config-model/src/test/java/com/yahoo/vespa/model/container/search/searchchain/FederationTest.java