@Override
    public void getConfig(CloudTokenDataPlaneFilterConfig.Builder builder) {
        var clientsCfg = clients.stream()
                .filter(c -> !c.tokens().isEmpty())
                .map(x -> new CloudTokenDataPlaneFilterConfig.Clients.Builder()
                        .id(x.id())
                        .tokens(tokensConfig(x.tokens()))
                        .permissions(x.permissions().stream().map(Client.Permission::asString).sorted().toList()))
                .toList();
        builder.clients(clientsCfg).tokenContext(tokenContext);
    }
@Test
    void configures_dataplane_proxy_when_token_defined_but_missing() throws IOException {
        var certFile = securityFolder.resolve("foo.pem");
        var clusterElem = DomBuilderTest.parse(servicesXmlTemplate.formatted(applicationFolder.toPath().relativize(certFile).toString()));
        createCertificate(certFile);
        buildModel(Set.of(tokenEndpoint, mtlsEndpoint), List.of(), clusterElem);

        var configId = "container/component/com.yahoo.container.jdisc.DataplaneProxyConfigurator";
        var cfg = root.getConfig(DataplaneProxyConfig.class, configId);
        assertNotNull(cfg);
        assertEquals(8443, cfg.mtlsPort());
        assertEquals(8444, cfg.tokenPort());
    }