practice mocking legacy code