Idiom
get a taste of one's own medicine
Theme: RECIPROCITY
[for one] to receive difficulties of the same kind that one has been causing other people.Now you see how it feels to have someone call you names! You are getting a taste of your own medicine!John, who is often rude and abrupt with people, was devastated when the teacher treated him rudely. He doesn't like having a taste of his own medicine.