Note: 
Horde itself has a mechanism to inject mocks for testing.
I'll dig into this as soon as we touch unit testing (which should have been done already ;-) )