Again, there are two general avenues here that you can take assuming you want to receive the "benefit" of having taken the test.
You can do it in a way that benefits you but completely fucks over a bunch of other students, including others who may have been "bullied" against their will. Or you can find a way to do it in a way that benefits you and has zero impact on others.
Knowingly and stubbornly committing to doing the former is a dick thing to do, and kind of makes you an asshole. Not the type of "asshole" that acts to further their own self-interest. But the type of asshole who actively acts to subvert the interests of others.
How about I do nothing except take my exam as normal?
Oh no, that would be a dick thing to do. Actively subverting them... by taking an exam in a class they also happen to be enrolled in... Pure entitlement culture.
If they ask, they won't fuck themselves over. If they don't ask, they will fuck themselves over. They are responsible for what happens to them. As long as they do not ask me for my input, I have no responsibility for their actions.
You can do it in a way that benefits you but completely fucks over a bunch of other students, including others who may have been "bullied" against their will. Or you can find a way to do it in a way that benefits you and has zero impact on others.
Knowingly and stubbornly committing to doing the former is a dick thing to do, and kind of makes you an asshole. Not the type of "asshole" that acts to further their own self-interest. But the type of asshole who actively acts to subvert the interests of others.