Stubbing partial match code