### Question:
Peer { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } Peer peer = (Peer) o; return peerId.equals(peer.getPeerId()); } private  Peer(String ynodeUri); static Peer valueOf(String ynodeUri); static Peer valueOf(byte[] ynodeUriBytes); static Peer valueOf(String nodeId, String host, int port); PeerId getPeerId(); Sha3Hash getPubKey(); String getHost(); int getPort(); String getYnodeUri(); long getBestBlock(); void setBestBlock(long bestBlock); @Override int hashCode(); @Override boolean equals(Object o); @Override String toString(); String toAddress();  }### Answer:
@Test public void equalsTest() { Peer peer1 = Peer.valueOf("ynode: assertThat(peer1).isEqualTo(Peer.valueOf("ynode: Peer peer2 = Peer.valueOf("ynode: assertThat(peer1).isNotEqualTo(peer2); }