example of mocking the datasource for unit testing