It's no different when using CPPUnit than in any other situation. If you need to have a class replaced by your mockup class just make sure it's that class that gets linked and not the original. How...