For example, I hace a monad that saves to a database using effects. I change the effect to update an array instead and I have code that I can use in a unit test.