### Question:
PeerId { public static PeerId of(byte[] hash) { return new PeerId(hash); } private  PeerId(Sha3Hash hash); private  PeerId(byte[] bytes); byte[] getBytes(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); static PeerId of(byte[] hash); static PeerId of(String ynodeUri);  }### Answer:
@Test public void of() { PeerId peerId1 = PeerId.of(ynodeUri1); byte[] b = peerId1.getBytes(); PeerId peerId2 = PeerId.of(b); Assert.assertEquals(peerId1, peerId2); }