Victim raped after trying to leave relationship, court told