It's like giving police officers new buller-proof vests, and then none of them getting in the firing line. You can't say that your vests are more efficient than other vests if they technically didn't get tested.
So, my thinking was how they ensure that all test groups are sexually exposed to other people with HIV, for the trial to be effective.
Think about it like studies on which cars perform better in crashes. They don't need to have people drive more wrecklessly to determine if the car is safer. They just need to look at the expected risk compared to the outcomes of the people who drive that car. They are already doing the risky thing.
They don't. Some people will organically have sex with people with HIV, and some will not. Your study just needs to recruit enough participants that it is likely some will. Your study absolutely does not tell people to deliberately have sex with HIV+ partners.