Edge { @Override public String toString() { return "Edge{" + "id='" + id + '\'' + ", src='" + src + '\'' + ", dest='" + dest + '\'' + ", metric=" + metric + ", bandwidth=" + bandwidth + '}'; } Edge(String id, String src, String dest, long metric, long bandwidth);  Edge(VirtualLink virtualLink);  Edge(PhysicalLink physicalLink); String getId(); String getSrc(); String getDest(); long getMetric(); long getBandwidth(); void setMetric(long metric); void setBandwidth(long bandwidth); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testToString() throws Exception { edge = new Edge(id,src,dest,metric,bandwidth); Assert.assertNotNull(edge.toString()); }