Vertex { public String getId() { return id; } Vertex(String id); String getId(); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString();  }
@Test public void testGetId() throws Exception { Assert.assertNull(vertex.getId()); id = "test"; vertex = new Vertex(id); Assert.assertEquals(new String("test"),vertex.getId()); }