@Override
    public Integer doCall() throws Exception {
        CommandLineHelper.createPropertyFile();

        if (configuration.split("=").length == 1) {
            printer().println("Configuration parameter not in key=value format");
            return 1;
        }

        CommandLineHelper.loadProperties(properties -> {
            String key = StringHelper.before(configuration, "=").trim();
            String value = StringHelper.after(configuration, "=").trim();
            properties.put(key, value);
            CommandLineHelper.storeProperties(properties, printer());
        });

        return 0;
    }
@Test
    public void shouldOverwriteConfig() throws Exception {
        UserConfigHelper.createUserConfig("foo=bar");

        ConfigSet command = new ConfigSet(new CamelJBangMain().withPrinter(printer));
        command.configuration = "foo=baz";
        command.doCall();

        Assertions.assertEquals("", printer.getOutput());

        CommandLineHelper.loadProperties(properties -> {
            Assertions.assertEquals(1, properties.size());
            Assertions.assertEquals("baz", properties.get("foo"));
        });
    }