The Moonstone
This poem is mentioned in Jules Verne's 1884 novel "The Vanished Diamond" (aka. "The Southern Star"), and by Wilkie Collins in "The Moonstone" (1868), in which Sergeant Cuff whistles the tune frequently.