add(ex4): add an example that shows how to mock dependencies