There are rehearsals. Lots and lots of rehearsals. Sofia Vegara has a lot of clout in TV land. She's free to decline the gig at any point, no harm, no foul. She was clearly in on it and knew she was being objectified. It's part of her persona. She's very smart. She knew exactly what she was doing.