A mock for native promises.