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