A Bournemouth man appeared in Poole Magistrates' Court after impersonating a police constable and being in possession of a imitation firearm.