DistanceVector { public double getDistance(long targetId) { return vector.get(targetId).getDistance(); } DistanceVector(long sourceId); DistanceElement getElement(long id); void printAll(); List<Long> getPath(long targetId); void printPathTo(long targetId); double getDistance(long targetId);  }
@Test public void testGetDistance(){ assertEquals(2,vector.getDistance(1),0); }