@Test
  public void assertNotFound() {
    var chainTip = blockchain.getChainHead().getBlockHeader();

    // move the head to number just after chain head
    var resp =
        debugSetHead.response(debugSetHead("" + chainTip.getNumber() + 1, Optional.of(TRUE)));
    assertThat(resp.getType()).isEqualTo(RpcResponseType.ERROR);

    // move the head to some arbitrary hash
    var resp2 =
        debugSetHead.response(
            debugSetHead(
                Hash.keccak256(Bytes.fromHexString("0xdeadbeef")).toHexString(),
                Optional.of(TRUE)));
    assertThat(resp2.getType()).isEqualTo(RpcResponseType.ERROR);

    // get the new chainTip:
    var newChainTip = blockchain.getChainHead().getBlockHeader();

    // assert neither the chain nor the worldstate moved
    assertThat(newChainTip).isEqualTo(chainTip);
    assertThat(archive.getWorldState().rootHash()).isEqualTo(chainTip.getStateRoot());
  }
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