@Test
  public void testGetOptionValueOrDefault_UserProvidedValue() {
    when(parseResult.matchedOption(OPTION_NAME)).thenReturn(optionSpec);
    when(optionSpec.getValue()).thenReturn(OPTION_VALUE);

    String result = getOptionValueOrDefault(commandLine, OPTION_NAME, converter);
    assertThat(result).isEqualTo(OPTION_VALUE);
  }
Unit tests for {@link CommandLineUtils} focusing on the retrieval of option values
(getOptionValueOrDefault).
app/src/test/java/org/hyperledger/besu/cli/CommandLineUtilsDefaultsTest.java