Vertex { public String getLabel() { return label; } Vertex(final String label, final E data); String getLabel(); E getData(); @Override @SuppressWarnings("unchecked") boolean equals(Object vertexObj);  }
@Test public void testGetLabel() { Vertex<String> v = new Vertex<String>("testing", "nodule number nine"); assertTrue(v.getLabel().equals("testing")); }