AuditEvent { public String getName() { return name; } AuditEvent(String name, String type); String getName(); String getType(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testGetName() throws Exception { AuditEvent event = new AuditEvent("category", "type"); assertEquals("category", event.getName()); }