}
public void testLateRemove()
{
Trigger[] ta = buildTriggers(20);
EventListenerList l = new EventListenerList();
addAll(l, ta);
Iterator i = l.getListeners();
for (int j = 0; j < 5; j++)
{
Trigger t = (Trigger) i.next();
t.setTrigger(true);
}
Trigger tremoved = ta[15];
l.removeListener(tremoved);
while (i.hasNext())
{
Trigger t = (Trigger) i.next();
t.setTrigger(true);