private Optional<BlockHeader> getBlockHeaderForHashOrNumber(final String input) {
    try {
      var param = new BlockParameterOrBlockHash(input);
      if (param.getHash().isPresent()) {
        return blockchain.getBlockHeader(param.getHash().get());
      } else if (param.getNumber().isPresent()) {
        return blockchain.getBlockHeader(param.getNumber().getAsLong());
      }
    } catch (JsonProcessingException ignored) {
      // meh
    }
    return Optional.empty();
  }
This test only exercises bonsai worldstate since forest is essentially a no-op for moving the
worldstate.
ethereum/api/src/test/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/DebugSetHeadTest.java