Yes, it was a real case! (but no record of who the barristers were – if any)
223. MARTIN WRIGHT (aged 67) was indicted for that he, not having the fear of God before his eyes, and not regarding the order of nature, on the 5th of January , in and upon a certain beast, called a cow, feloniously, wickedly, and diabolically did lay his hands, and then and there feloniously, wickedly, and diabolically, and against the order of nature, had a venereal affair with the said cow, and then and there, feloniously, wickedly, and diabolically, with the aforesaid cow, did commit and perpetrate that detestable and abominable crime, called buggery, (not to be named among Christians,) to the great displeasure of Almighty God, to the great scandal of human kind , against the statute, and against the peace.
The prisoner was observed by Thomas Cheadle , on the 5th of January on Edmonton common ; he was raised on a horse block, with his breeches down, and his private parts in his hand, just going to introduce into the cow; the witness came behind him, spoke to him, and stopped him directly.
NOT GUILTY .
He was detained to be tried for an attempt to commit the above crime.
Tried by the first Middlesex Jury before Mr. RECORDER.
http://www.oldbaileyonline.org/browse.jsp?id=t17870110-64-off326&div=t17870110-64#highlight