protected void verifyOptionsConstraintLoggerCall(
      final String mainOption, final String... dependentOptions) {
    verify(mockLogger, atLeast(1))
        .warn(
            stringArgumentCaptor.capture(),
            stringArgumentCaptor.capture(),
            stringArgumentCaptor.capture());
    assertThat(stringArgumentCaptor.getAllValues().get(0)).isEqualTo(DEPENDENCY_WARNING_MSG);

    for (final String option : dependentOptions) {
      assertThat(stringArgumentCaptor.getAllValues().get(1)).contains(option);
    }

    assertThat(stringArgumentCaptor.getAllValues().get(2)).isEqualTo(mainOption);
  }
Check logger calls

<p>Here we check the calls to logger and not the result of the log line as we don't test the
logger itself but the fact that we call it.

@param dependentOptions the string representing the list of dependent options names
@param mainOption the main option name
app/src/test/java/org/hyperledger/besu/cli/CommandTestAbstract.java