Another way is to put 5 batteries on a foolscap paper, lining them side-by-side, but progressively slightly further (guided by the lines on the paper). Focus on the middle battery and take a picture. Check and see if the middle battery is the one most in-focus.