The Crown has rested its case at the trial of a Quebecer charged with attempting to leave the country to participate in the activities of a terrorist group.

Ismael Habib is also charged with giving false information in order to obtain a passport.

The trial is now adjourned until Jan. 23, when lawyers will argue whether the judge should disregard some of the evidence.

Habib's lawyer intends to challenge the admissibility of a confession extracted by undercover agents, suggesting it was obtained in a Mr. Big operation, in which officers pose as criminals.

A Mountie who designed the elaborate scenarios involving the undercover agents was the final prosecution witness.

Habib, 29, was first detained last February in Gatineau, Que., on an unrelated domestic assault charge before the Crown added the terror-related charge in March.