### Question:
MultiaddrUtil { public static Multiaddr fromDiscoveryPeerAsUdp(final DiscoveryPeer peer) { return addPeerId(fromInetSocketAddress(peer.getNodeAddress(), "udp"), getNodeId(peer)); }  static Multiaddr fromDiscoveryPeer(final DiscoveryPeer peer); static Multiaddr fromDiscoveryPeerAsUdp(final DiscoveryPeer peer); static Multiaddr fromInetSocketAddress(
      final InetSocketAddress address, final NodeId nodeId);  }### Answer:
@Test public void fromDiscoveryPeerAsUdp_shouldConvertDiscoveryPeer() throws Exception { final DiscoveryPeer peer = new DiscoveryPeer( Bytes.fromHexString( "0x03B86ED9F747A7FA99963F39E3B176B45E9E863108A2D145EA3A4E76D8D0935194"), new InetSocketAddress(InetAddress.getByAddress(new byte[] {127, 0, 0, 1}), 9000), ENR_FORK_ID, PERSISTENT_SUBNETS); final Multiaddr expectedMultiAddr = Multiaddr.fromString( "/ip4/127.0.0.1/udp/9000/p2p/16Uiu2HAmR4wQRGWgCNy5uzx7HfuV59Q6X1MVzBRmvreuHgEQcCnF"); assertThat(MultiaddrUtil.fromDiscoveryPeerAsUdp(peer)).isEqualTo(expectedMultiAddr); }