How Hermione resisted the urge to cast a spell to imitate horse noises, just to see if Umbridge remembered her encounter with the centaurs as much as she did, Hermione didn’t know. But she considered it a show of character strength that she had stood above it.