throw one's cap over the windmill
From a passage in the novel Don Quixote in which the titular character throws his cap over a windmill that he has mistaken for a giant, as a challenge.