Updated

A 17-year-old charged with raping a fellow student in a Maryland high school bathroom is heading back to court.

Jose Montano and another student, 18-year-old Henry Sanchez, are charged with assaulting the 14-year-old girl earlier this month at Rockville High School.

Montano is scheduled for a preliminary hearing Friday in Montgomery County District Court.

On Thursday, a judge rejected a defense request to release Montano on bail. His lawyers say the sex was consensual, and said they have text messages showing the girl agreed to have sex. Sanchez's lawyer also says the sex was consensual.

The case received national attention after the White House called it an example of why President Donald Trump wants to crack down on illegal immigration. Officials say Sanchez came to the U.S. from Guatemala illegally.