We can also mock in case when there is a UI involved and input comes from the user(though it is better to keep the UI code separate from the actual logic) or some URL that may or may not be live , so we can mock a URL.
Startting off with a basic example I will be posting in future post of more things we can do with mox.
Mox uses Record Replay approach, so the method that needs to be tested is put in replay mode and result can be checked using assertEquals(expected, result).