Stubbing karma method