public void setCliProperty(final String name, final Object value) {
    try {
      config = config.with(name, value);
    } catch (final ConfigException e) {
      terminal.writer().println(e.getMessage());
    }
  }
@Test
  public void shouldThrowOnInvalidCliPropertyValue() {
    // When:
    console.setCliProperty(CliConfig.WRAP_CONFIG, "BURRITO");

    // Then:
    assertThat(terminal.getOutputString(),
        containsString("Invalid value BURRITO for configuration WRAP: String must be one of: ON, OFF, null"));
  }