Rational Mediation: A Theory and a Test