### Question:
MaintainedPeers { public boolean contains(final Peer peer) { return maintainedPeers.contains(peer); }  boolean add(final Peer peer); boolean remove(final Peer peer); boolean contains(final Peer peer); int size(); void subscribeAdd(final PeerAddedCallback callback); void subscribeRemove(final PeerRemovedCallback callback); Stream<Peer> streamPeers();  }### Answer:
@Test public void contains() { final Peer peerA = createPeer(); final Peer peerAClone = DefaultPeer.fromEnodeURL(peerA.getEnodeURL()); final Peer peerB = createPeer(); maintainedPeers.add(peerA); assertThat(maintainedPeers.contains(peerA)).isTrue(); assertThat(maintainedPeers.contains(peerAClone)).isTrue(); assertThat(maintainedPeers.contains(peerB)).isFalse(); }