A stand-in used in place of the real thing while testing. A mock answers as expected and proves nothing about the real one.
Old French mocquer (to deride, to mock), of uncertain further origin, perhaps imitative; a stand-in used first in ridicule and later in testing.
An obedient stand-in for testing — it answers exactly as expected and settles nothing about how the real thing will.