section 486.2(6)


486.2(6) If the judge or justice is of the opinion that it is necessary for a witness to testify in order to determine whether an order under subsection (2) or (4) should be made in respect of that witness, the judge or justice shall order that the witness testify in accordance with that subsection.