Stubbing api.