### Question:
EventImpl implements Event { public ViewDefinition getViewSubject() { return viewSubject; } 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();  }### Answer:
@Test public void testGetViewSubject() throws Exception { EventImpl event = getEvent("MyEvent", Collections.emptyMap(), view_xml); Assert.assertEquals("MY_VIEW", event.getViewSubject().getViewName()); Assert.assertEquals("My View!", event.getViewSubject().getLabel()); Assert.assertEquals("1.0.0", event.getViewSubject().getVersion()); }