@Test
  void shouldUpdateTimestampIfNotPresent() {
    // BlockHeader is at block number 1 and timestamp 1000
    // BlockStateCall does not have a timestamp set
    // Should set timestamp to 1024

    long blockNumber = 3L;
    long expectedTimestamp = headerTimestamp + (blockNumber - 1L) * 12;
    BlockStateCall blockStateCall = createBlockStateCall(blockNumber, null);
    List<BlockStateCall> blockStateCalls =
        BlockStateCalls.fillBlockStateCalls(List.of(blockStateCall), mockBlockHeader);
    assertEquals(
        expectedTimestamp,
        blockStateCalls.getLast().getBlockOverrides().getTimestamp().orElseThrow());
  }
Tests that the timestamp is updated correctly if it is not present in the BlockStateCall.
ethereum/core/src/test/java/org/hyperledger/besu/ethereum/transaction/BlockStateCallsTest.java