### Question:
NodeTable { public synchronized void dropNode(Node n) { NodeEntry e = new NodeEntry(node.getId(), n); buckets[getBucketId(e)].dropNode(e); nodes.remove(e); } NodeTable(Node n); Node getNode(); final void initialize(); synchronized Node addNode(Node n); synchronized void dropNode(Node n); synchronized boolean contains(Node n); synchronized void touchNode(Node n); int getBucketsCount(); synchronized NodeBucket[] getBuckets(); int getBucketId(NodeEntry e); synchronized int getNodesCount(); synchronized List<NodeEntry> getAllNodes(); synchronized List<Node> getClosestNodes(byte[] targetId);  }### Answer:
@Test public void dropNodeTest() { Node node = new Node(ids.get(0), ips[0], 18888, 18888); nodeTable.addNode(node); Assert.assertTrue(nodeTable.contains(node)); nodeTable.dropNode(node); Assert.assertTrue(!nodeTable.contains(node)); }