@Test
  public void test12_RequestStateRoot127BlocksOld() {

    Hash rootHash =
        protocolContext
            .getBlockchain()
            .getBlockHeader((protocolContext.getBlockchain().getChainHeadBlockNumber() - 127))
            .orElseThrow()
            .getStateRoot();
    testAccountRangeRequest(
        new AccountRangeRequestParams.Builder()
            .rootHash(rootHash)
            .expectedAccounts(84)
            .responseBytes(4000)
            .expectedFirstAccount(firstAccount)
            .expectedLastAccount(
                Bytes32.fromHexString(
                    "0x580aa878e2f92d113a12c0a3ce3c21972b03dbe80786858d49a72097e2c491a3"))
            .build());
  }
This test requests data at a state root that is 127 blocks old. We expect the server to have
this state available. Expected: 84 accounts.
ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/snap/SnapServerGetAccountRangeTest.java