Difference between Mock and Stub Object in Unit testing Date Published: September 8th, 2016 Categories: Development By Javin_Paul Stub and Mock objects are two popular technique Java programmers use during Unit testing. This article explains difference between Stub and Mock objects and guide where to use them on Test driven development.