Using mocks and stubs