@Test
public void addExtraParams() throws Exception {

    String cassParamName1 = "client_encryption_options.optional";
    String priamKeyName1 = "Priam.client_encryption.optional";
    String cassParamName2 = "client_encryption_options.keystore_password";
    String priamKeyName2 = "Priam.client_encryption.keystore_password";
    String cassParamName3 = "randomKey";
    String priamKeyName3 = "Priam.randomKey";
    String cassParamName4 = "randomGroup.randomKey";
    String priamKeyName4 = "Priam.randomGroup.randomKey";
    String extraConfigParam =
            String.format(
                    "%s=%s,%s=%s,%s=%s,%s=%s",
                    priamKeyName1,
                    cassParamName1,
                    priamKeyName2,
                    cassParamName2,
                    priamKeyName3,
                    cassParamName3,
                    priamKeyName4,
                    cassParamName4);
    Map extraParamValues = new HashMap();
    extraParamValues.put(priamKeyName1, true);
    extraParamValues.put(priamKeyName2, "test");
    extraParamValues.put(priamKeyName3, "randomKeyValue");
    extraParamValues.put(priamKeyName4, "randomGroupValue");
    StandardTuner tuner =
            new StandardTuner(
                    new TunerConfiguration(extraConfigParam, extraParamValues),
                    backupRestoreConfig,
                    instanceInfo);
    Files.copy(new File("src/main/resources/incr-restore-cassandra.yaml"), target);
    tuner.writeAllProperties(target.getAbsolutePath(), "your_host", "YourSeedProvider");
    // Read the tuned file and verify
    DumperOptions options = new DumperOptions();
    options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK);
    Yaml yaml = new Yaml(options);
    Map map = yaml.load(new FileInputStream(target));
    Assert.assertEquals("your_host", map.get("listen_address"));
    Assert.assertEquals("true", ((Map) map.get("client_encryption_options")).get("optional"));
    Assert.assertEquals(
            "test", ((Map) map.get("client_encryption_options")).get("keystore_password"));
    Assert.assertEquals("randomKeyValue", map.get("randomKey"));
    Assert.assertEquals("randomGroupValue", ((Map) map.get("randomGroup")).get("randomKey"));
}