@Override
    public Integer doCall() throws Exception {
        CommandLineHelper.loadProperties(properties -> {
            Optional<Object> maybeProperty = Optional.ofNullable(properties.get(key));
            if (maybeProperty.isPresent()) {
                printer().println(String.valueOf(maybeProperty.get()));
            } else {
                printer().println(key + " key not found");
            }
        });

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

        ConfigGet command = new ConfigGet(new CamelJBangMain().withPrinter(printer));
        command.key = "foo";
        command.doCall();

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