Take him to the river. Drop him in the water.
If he sinks and stays down he’s not a warlock, if he comes to the surface, and tries to stay above water he is a warlock. BURN HIM AT THE STAKE.
https://www.youtube.com/watch?v=vGD8aQ2GKr0