Test private method without exposing it.