public Packet createPingPacket(
      final MockPeerDiscoveryAgent fromAgent,
      final MockPeerDiscoveryAgent toAgent,
      final PacketPackage packetPackage) {
    return packetPackage
        .packetFactory()
        .create(
            PacketType.PING,
            packetPackage
                .pingPacketDataFactory()
                .create(
                    Optional.of(fromAgent.getAdvertisedPeer().get().getEndpoint()),
                    toAgent.getAdvertisedPeer().get().getEndpoint(),
                    UInt64.ONE),
            fromAgent.getNodeKey());
  }
Starts multiple discovery agents from generated peers.

@param count the number of agents to start
@return a list of discovery agents.
ethereum/p2p/src/test/java/org/hyperledger/besu/ethereum/p2p/discovery/PeerDiscoveryTestHelper.java