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