Taste of your own medicine, A

1. When you do something bad to someone and then have them do it back to you. 2. When justice is served.