private JsonRpcRequestContext debugSetHead(
      final String numberOrHash, final Optional<Boolean> moveWorldState) {
    if (moveWorldState.isPresent()) {
      return new JsonRpcRequestContext(
          new JsonRpcRequest(
              "2.0", "debug_setHead", new Object[] {numberOrHash, moveWorldState.get()}));
    } else {
      return new JsonRpcRequestContext(
          new JsonRpcRequest("2.0", "debug_setHead", new Object[] {numberOrHash}));
    }
  }
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