[Proposal] add getMethodAsPublic() helper

I've added a getMethodAsPublic() for testing private and protected methods