example of mocking and validate the arguments passed to the mock