We elaborate on the example of mandatory measles vaccination and the role of its anticipation. Our framework is a SIR compartmental model with fully rational forward looking agents who can therefore anticipate on the effects of the mandatory vaccination policy. ...We provide numerical evidence suggesting that individual anticipatory behavior may lead to a transient increase in measles prevalence before steady state eradication. ...