extract __mock_reset_method for later reuse