@Test
  void shouldThrowExceptionForInvalidBlockNumber() {
    // BlockHeader is at block number 1
    // BlockStateCall block number is 1
    // Should throw an exception because the block number is not greater than 1
    IllegalArgumentException exception =
        assertThrows(
            IllegalArgumentException.class,
            () ->
                BlockStateCalls.fillBlockStateCalls(
                    List.of(createBlockStateCall(1L, 1012L)), mockBlockHeader));
    String expectedMessage =
        String.format(
            "Block number is invalid. Trying to add a call at block number %s, while current block number is %s.",
            1L, 1L);
    assertEquals(expectedMessage, exception.getMessage());
  }
Tests that an exception is thrown when a BlockStateCall with a block number less than or equal
to the last block number is added.
ethereum/core/src/test/java/org/hyperledger/besu/ethereum/transaction/BlockStateCallsTest.java