Introduction A problem that frequently occurs when writing unit tests is how to test a unit in isolation from other classes. One solution to this problem is to create Mock Objects that mimic interface of the classes that the unit depends on. The Mock Object can then return canned values in response to method calls, or check that the expected methods are called with the correct arguments. Mock Obje