A Test Shunt is a class that derives from the class to be tested, and overrides a specific part of class behavior to drive how the code behaves during the test. I have found shunts to especially useful when having to control behavior of a dependency within the tested class. Let's say we have a legacy class with a buried dependency like below