The way I deal with it is by leaving the team immediately. My life is too short to put up with being treated like a slave. I am too good at programming.
> logicslave 2 minutes ago
That made me chuckle. On a serious note though, why not start by talking about it first? Why not say what you're experiencing, how it makes you feel, and see how your manager responds? Unless you work in total isolation, which few of us do, we have to get along with other people. And talking about things usually is the way to go.