Oft attributed to Abraham Lincoln, though probably an old joke even in the 1850s.
Here, it's used as a comment on culinary acumen at sea, in a 1902 publication of Punch.
"If this is coffee, I want tea; but if this is tea; but if this is Tea, then I wish for coffe."