Creating an abstraction so the tests have a hook