Add method visibility keywords to GetClassName test, #nfc.

No functional changes.