Running this approach will in fact toggle the checkbox; .isSelected()
in Java/Selenium 2 apparently always returns false
(at least with the Java, Selenium, and Firefox versions I tested it with).
The selection of the proper checkbox isn't where the problem lies -- rather, it is in distinguishing correctly the initial state to needlessly avoid reclicking an already-checked box.