Peer implements Serializable { public String getName() { return name; } Peer(String name, String grpcURL, Properties properties); String getName(); Properties getProperties(); String getUrl(); @Override boolean equals(Object otherPeer); @Override int hashCode(); @Override String toString();  }
@Test public void testGetName() { Assert.assertTrue(peer != null); try { peer = hfclient.newPeer(PEER_NAME, "grpc: Assert.assertEquals(PEER_NAME, peer.getName()); } catch (InvalidArgumentException e) { Assert.fail("Unexpected Exeception " + e.getMessage()); } }