// Test event queuing and dequeuing during broadcasting
public void testEventBroadcasting() {
// Register a listener that will conditionally queue a new event
UIViewRoot root = facesContext.getApplication().getViewHandler().createView(facesContext, null);
root.addFacesListener
(new TestListener("t", "2", "4"));
TestListener.trace(null);
// Queue some events, including the trigger one
TestEvent event = new TestEvent(root, "1");