Police in northern Spain must have thought they were being taken for a ride when they realized the 37-year-old Spaniard had turned up to his driving test behind the wheel of his own car.
The man, from the town of Labuerda, in northeastern Spain, was driving without a license, having lost all his points after a series of traffic violations, according to new agency Efe.
He was due to take his theory test at the Department of Transport in Huesca, the capital of Aragon.
But he was found out when traffic police realized that a car parked outside the driving test centre belonged to one of the people due to take the theory exam.
After he had finished the exam, police stopped the man while he was driving on the A-132 motorway between Huesca and the town of Puente la Reina.
While it is unclear if he managed to pass the theory test, he was arrested for violating road safety and will appear in court on the charges.