Object arg = new String("arg") ;
assertEquals(0, listener.eventCount) ;
EventManager.register(obj, ev1, listener) ;
EventManager.send(obj, new Event(ev1, arg)) ;
assertEquals(1, listener.eventCount) ;
EventManager.send(obj, new Event(ev2, arg)) ;
assertEquals(1, listener.eventCount) ;
EventManager.send(obj, new Event(ev1, arg)) ;
assertEquals(2, listener.eventCount) ;
assertEquals(ev1, listener.event.getType()) ;
assertEquals(arg, listener.event.getArgument()) ;
}