@Test
  public void testEvents()
  {
    broadcaster = new BroadcastHelper();

    event = new BasicEvent[5];
    observer = new SampleObserver[5];
    for ( int i= 0; i < 5; ++i ) {
      observer[i] = new SampleObserver(broadcaster, i+1);
      event[i] = new BasicEvent(i+1);
    }
    int maxCount = 10;
    for ( int i = 0; i < maxCount; ++i ) {
      for ( int j = 0; j < 5; ++j ) {
	broadcaster.broadcast(event[j]);
      }
    }
    for ( int i = 0; i < 5; ++i ) {
      int count = observer[i].count();
      assertEquals(maxCount, count);
    }
  }