public void verifyCountsAndClear(int expectedRegistrations,int expectedUnregistrations){
  assertEquals(expectedRegistrations,registrationCount);
  assertEquals(expectedUnregistrations,unregistrationCount);
  registrationCount=0;
  unregistrationCount=0;
}

public void verifyCountsAndClear ( int expectedRegistrations , int expectedUnregistrations ) { assertEquals ( expectedRegistrations , registrationCount ) ; assertEquals ( expectedUnregistrations , unregistrationCount ) ; registrationCount = 0 ; unregistrationCount = 0 ; }
invoke this method after a predetermined number of operations have been performed
