@Test
  void shouldUpdateBlockNumberIfNotPresent() {
    // BlockHeader is at block number 1
    // BlockStateCall does not have a block number set
    // Should set block number to 2

    long expectedBlockNumber = 2L;
    BlockStateCall blockStateCall = createBlockStateCall(null, null);
    List<BlockStateCall> blockStateCalls =
        BlockStateCalls.fillBlockStateCalls(List.of(blockStateCall), mockBlockHeader);

    assertEquals(1, blockStateCalls.size());
    assertEquals(
        expectedBlockNumber,
        blockStateCalls.getFirst().getBlockOverrides().getBlockNumber().orElseThrow());
  }
Tests that the block number is updated correctly if it is not present in the BlockStateCall.
ethereum/core/src/test/java/org/hyperledger/besu/ethereum/transaction/BlockStateCallsTest.java