@ParameterizedTest
  @MethodSource("ethGasPriceAtGenesis")
  public void ethGasPriceAtGenesis(
      final Wei minGasPrice, final Optional<Wei> maybeGenesisBaseFee, final Wei expectedGasPrice) {
    miningConfiguration.setMinTransactionGasPrice(minGasPrice);

    if (maybeGenesisBaseFee.isPresent()) {
      mockBaseFeeMarket();
      mockBlockchain(maybeGenesisBaseFee.get(), 0, 0);
    } else {
      mockGasPriceMarket();
      mockBlockchain(null, 0, 0);
    }

    final JsonRpcRequestContext request = requestWithParams();
    final JsonRpcResponse expectedResponse =
        new JsonRpcSuccessResponse(
            request.getRequest().getId(), expectedGasPrice.toShortHexString());

    final JsonRpcResponse actualResponse = method.response(request);
    assertThat(actualResponse).usingRecursiveComparison().isEqualTo(expectedResponse);

    verify(blockchain).getChainHeadBlock();
    verifyNoMoreInteractions(blockchain);
  }
Test to verify that the method returns the actual gas price when the gas price is within the
bound range.
ethereum/api/src/test/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/EthGasPriceTest.java