Test Double (xUTP.com)
http://xunitpatterns.com/Test%20Double.html
doubleには「代役」「替え玉」という意味がある(ウィズダム英和辞典)
概念整理した図 http://xunitpatterns.com/Types%20Of%20Test%20Doubles.gif
We replace a component on which the SUT depends with a "test-specific equivalent."
Sometimes it is just plain hard to test the system under test (SUT) because it depends on other components that cannot be used in the test environment.
When we are writing a test in which we cannot (or chose not to) use a real depended-on component (DOC), we can replace it with a Test Double.
When to use itにVariation
Test Stub (xUTP.com)
replace a real component on which the SUT depends so that the test has a control point for the indirect inputs of the SUT
Test Spy
Mock Object (xUTP.com)
as an observation point that is used to verify the indirect outputs of the SUT as it is exercised.
Fake Object
Dummy Object