### Question:
PeerBucket { public synchronized void bump(Peer peer) { if (peers.contains(peer)) { moveToFront(peers, peer); } } PeerBucket(int depth); int getPeersCount(); synchronized void bump(Peer peer);  }### Answer:
@Test public void testBump() { Peer peer3 = Peer.valueOf("ynode: bucket.addPeer(peer1); bucket.addPeer(peer2); bucket.addPeer(peer3); bucket.bump(peer3); assert bucket.getPeersCount() == 3; assertTrue(getLastPeer(peer2)); }