### Question:
P2PNetwork extends Network<TN> { public void removeLink(TN p1, TN p2) { removeLink(existingLinks, p1.nodeId, p2.nodeId); } P2PNetwork(int connectionCount, boolean minimum); void setPeers(); void disconnect(TN p); void createLink(TN p1, TN p2); void removeLink(TN p1, TN p2); int avgPeers(); void sendPeers(FloodMessage<TN> msg, TN from);  }### Answer:
@Test public void testPeerRemoval() { final List<P2PNodeTest> n0Peers = n0.peers; int n0P = n0Peers.size(); P2PNodeTest n0RemovedPeers = n0Peers.get(1); network.removeLink(n0, n0RemovedPeers); Assert.assertFalse(n0.peers.contains(n0RemovedPeers)); Assert.assertFalse(n0RemovedPeers.peers.contains(n0)); Assert.assertEquals((n0P - 1), n0.peers.size()); }