@Override
    public void configureAuthenticationConfig(AuthenticationConfig authConfig,
                                              Optional<FunctionAuthData> functionAuthData) {
        authConfig.setClientAuthenticationPlugin(AuthenticationToken.class.getName());
        authConfig.setClientAuthenticationParameters(Paths.get(DEFAULT_MOUNT_DIR, FUNCTION_AUTH_TOKEN)
                .toUri().toString());
        if (StringUtil.isNotBlank(brokerTrustCertsSecretName)) {
            authConfig.setTlsTrustCertsFilePath(DEFAULT_CERT_PATH);
        }
    }
@Test
    public void configureAuthenticationConfig() {
        HashMap<String, Object> config = new HashMap<>();
        config.put("brokerClientTrustCertsSecretName", "my-secret");
        KubernetesServiceAccountTokenAuthProvider provider = new KubernetesServiceAccountTokenAuthProvider();
        provider.initialize(null, null, (fd) -> "default", config);
        AuthenticationConfig authenticationConfig = AuthenticationConfig.builder().build();
        provider.configureAuthenticationConfig(authenticationConfig, Optional.empty());

        Assert.assertEquals(authenticationConfig.getClientAuthenticationPlugin(), AuthenticationToken.class.getName());
        Assert.assertEquals(authenticationConfig.getClientAuthenticationParameters(), "file:///etc/auth/token");
        Assert.assertEquals(authenticationConfig.getTlsTrustCertsFilePath(), "/etc/auth/ca.crt");
    }