Test Doubles Stubs In episode 002 of Testing All The Things start to implement a driving licence number generator. We use Stub Test Doubles of the LicenceApplicant interface to give us control over the values we pass into the generateNumber function.