Florian Mayer might have expected an easy route into the second round at Halle, having been drawn against a wild card in his opening match.