The Matildas captain is set to appear on court for a four-day trial for the alleged racially aggravated harassment of a police officer.