When you write unit tests - you can find that the code your'e testing is hard to initialize/use/integrate with
This should serve as a feedback for your design - you should refactor your code to make it easy to test, reducing it's coupling to other components, making it's dependencies explicit, etc
(as opposed to using clever tools to hack into/set up your components)