Edge { public String getDest() { return dest; } 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 testGetDest() throws Exception { edge = new Edge(id,src,dest,metric,bandwidth); Assert.assertEquals(null,edge.getDest()); dest = "test"; edge = new Edge(id,src,dest,metric,bandwidth); Assert.assertEquals(new String("test"),edge.getDest()); }