An example of test using mock