EventImpl implements Event { public String getId() { return id; } EventImpl(String id, Map<String, String> properties, ViewDefinition viewSubject);  EventImpl(String id, Map<String, String> properties, ViewInstanceDefinition viewInstanceSubject); private  EventImpl(String id, Map<String, String> properties,
                ViewDefinition viewSubject, ViewInstanceDefinition viewInstanceSubject); String getId(); Map<String, String> getProperties(); ViewDefinition getViewSubject(); ViewInstanceDefinition getViewInstanceSubject(); @Override String toString();  }
@Test public void testGetId() throws Exception { EventImpl event = getEvent("MyEvent", Collections.<String, String>emptyMap(), view_xml); Assert.assertEquals("MyEvent", event.getId()); }