If the mechanic didn't check the derailleur alignment before selling you a derailleur, he should refund that $$$. Despite all those little moving parts, derailleurs rarely wear out. Even when they take a hit, they're more likely to pass that along to the hanger - and not bend. Derailleur hangers are like fuses. They fail before the frame and the derailleur to save those parts.