Class to facilitate method swizzling, particularly for testing.