41. How does getMock() really work?
• Does Configuration class exist?
• Create Mock_Configuration_123abc class
extends Configuration class
• Create instance of that class
• Return instance
42. How does getMock() really work?
• Does Configuration class exist?
• Create Configuration class
• Create Mock_Configuration_123abc class
extends Configuration class
• Create instance of that class
• Return instance
56. Mocks are objects
pre-programmed with
expectations which
form a specification
of the calls they are
expected to receive
"Mocks Aren’t Stubs"
Martin Fowler