There is an amusing and historically accurate account of this in one of George Macdonald Frasers Flashman novels( cant remember which one though)

The book you are referring to is Flashman's Lady and the match was, indeed, between the England XI and the Gentlemen of Kent and took place in 1843 when Flashman was 21. The three batters (the term used for batsmen at the time) whom Flashman dismissed were Felix, Mynn and Pilch. The Victorian equivalents of Hadlee, Botham and Lara. Felix was dismissed by a c&b (caught and bowled), Mynn by a slow-paced ball which he misjudged and Pilch, most controversially, by lbw. Flashman jumped in the umpire's line of vision at the crucial moment and appealed knowing that the umpire was a Rugby old-boy. The umpire had no hesitation in agreeing with his school fellow despite the dubious appeal. Pilch was famed for playing whilst wearing a straw boater which he presented to Flashman with the words 'a trick like that deserves a new hat'.