How to configure stub emu