protected EthPeer createPeer() {
    final PeerConnection peerConnection = new MockPeerConnection(Set.of(EthProtocol.LATEST));
    final Consumer<EthPeer> onPeerReady = (peer) -> {};
    return new EthPeer(
        peerConnection,
        onPeerReady,
        Collections.emptyList(),
        EthProtocolConfiguration.DEFAULT_MAX_MESSAGE_SIZE,
        TestClock.fixed(),
        Collections.emptyList(),
        Bytes.random(64));
  }
Tests ethTasks that interact with a single peer to retrieve data from the network.

@param <T> The type of data being retrieved.
ethereum/eth/src/test/java/org/hyperledger/besu/ethereum/eth/manager/ethtaskutils/PeerMessageTaskTest.java