A verdict in the trial of a Toronto man charged with two counts of terrorism-related charges is expected in the coming days.

Mohamed Hersi was arrested at Pearson International Airport in March of 2011 as he tried to board a plane to Cairo, Egypt, with a one-way ticket.

The Somali-Canadian is the first person to stand in trial in this country for attempting to join a foreign group classified as a terrorist organization by the federal government, al-Shabaab.

Hersi was officially charged with attempting to participate in terrorist activity and providing counsel to a person to participate in a terrorist activity.

Hersi has denied the allegations, saying he was going overseas to study Arabic for several months.

The 28-year-old landed on police radar after his employer discovered a USB key belonging to Hersi containing extremist materials in his work uniform. His employer reported it to authorities.

Over the next several months, Hersi was befriended by an undercover police officer, who has testified at length during the trial.

Over the course of Hersi’s trial at a Brampton courthouse, the court heard that he was a friend of Mohamed Elmi Ibrahim, a former University of Toronto student who joined al-Shabaab and was killed in 2011. Ibrahim’s so-called ‘matyrdom video’ was posted online by the group shortly after his death.

The trial could set a precedent for terrorism-related cases in Canada if Hersi is found guilty.

The CBC’s John Lancaster has more in the video report above. 

With files from CBC's John Lancaster