Update the example

There is no method name mock inside the library so replaced this with expectEmail