Configuration getEffectiveConfiguration(String[] args) throws CliArgsException {
        final CommandLine commandLine = cli.parseCommandLineOptions(args, true);
        final Configuration effectiveConfiguration = new Configuration(baseConfiguration);
        effectiveConfiguration.addAll(cli.toConfiguration(commandLine));
        effectiveConfiguration.set(DeploymentOptions.TARGET, KubernetesSessionClusterExecutor.NAME);
        return effectiveConfiguration;
    }
@Test
    void testKubernetesSessionCliSetsDeploymentTargetCorrectly() throws CliArgsException {
        final KubernetesSessionCli cli =
                new KubernetesSessionCli(
                        new Configuration(), confDirPath.toAbsolutePath().toString());

        final String[] args = {};
        final Configuration configuration = cli.getEffectiveConfiguration(args);

        assertThat(KubernetesSessionClusterExecutor.NAME)
                .isEqualTo(configuration.get(DeploymentOptions.TARGET));
    }