### Question:
HashicorpSubCommand extends SignerSubCommand { @Override public String toString() { return MoreObjects.toStringHelper(this) .add("serverHost", serverHost) .add("serverPort", serverPort) .add("authFilePath", authFilePath) .add("timeout", timeout) .add("signingKeyPath", signingKeyPath) .add("tlsEnabled", tlsEnabled) .add("tlsKnownServerFile", tlsKnownServerFile) .toString(); }  @Override SignerProvider createSignerFactory(); @Override String getCommandName(); boolean isTlsEnabled(); Optional<Path> getTlsKnownServerFile(); @Override String toString(); static final boolean DEFAULT_TLS_ENABLED; }### Answer:
@Test public void missingOptionalParametersAreSetToDefault() { final Map<String, Object> subCommandOptions = removeOptions(validSubCommandOptions(), "host", "port", "signing-key-path"); final List<String> options = getOptions(toOptionsList(subCommandOptions)); final boolean result = parser.parseCommandLine(options.toArray(String[]::new)); assertThat(result).isTrue(); final String string = subCommand.toString(); assertThat(string).contains(THIS_IS_THE_PATH_TO_THE_FILE); assertThat(string).contains("localhost"); assertThat(string).contains(String.valueOf(8200)); assertThat(string).contains("/v1/secret/data/ethsignerSigningKey"); assertThat(string).contains(String.valueOf(TIMEOUT)); }