Well, Jesus might do something which certain people did not like. And His actions could then bring them out in the open, because of how they reacted.
Jesus told that guy to sell all He had and give to the poor. The guy had felt he was doing fine, but what Jesus told him to do got him sad. So, Jesus exposed if he was really about God, or not.