25 year old Louis De Zoysa from Banstead denies murdering 54 year old Matiu Ratana at Croydon Custody Centre in September 2020.
Jury members were allowed to hold the alleged weapon, which was loaded with dummy bullets, and fire it at the court ceiling.
The trial continues.