WASHINGTON ( AP ) - Supreme Court nominee Sonia Sotomayor has endured weeks of insults , obnoxious questions and unwelcome drilling into her work as a judge and a lawyer--and it was all on purpose , essentially a dress rehearsal for her confirmation hearings .