@Test
  public void envVariableOverridesValueFromConfigFile() {
    final String configFile = this.getClass().getResource("/partial_config.toml").getFile();
    final String expectedCoinbase = "0x0000000000000000000000000000000000000004";
    setEnvironmentVariable("BESU_MINER_COINBASE", expectedCoinbase);
    parseCommand("--config-file", configFile);

    final var captMiningParameters = ArgumentCaptor.forClass(MiningConfiguration.class);
    verify(mockControllerBuilder).miningParameters(captMiningParameters.capture());

    assertThat(captMiningParameters.getValue().getCoinbase())
        .contains(Address.fromHexString(expectedCoinbase));
  }
Test if the environment variable overrides the value from the configuration file. The test
checks if the value of the miner's coinbase address set through an environment variable
correctly overrides the value specified in the configuration file.
app/src/test/java/org/hyperledger/besu/cli/CascadingDefaultProviderTest.java