Handling MIDI with Leonardo

I’m triyng to use a Leonardo board to handle MIDI messages through pin 0 and 1, not through USB.
The standard examples in File->04.Communication->MIDI works well with my beloved Arduino UNO, but no chance to use it with Leonardo board.
I’ve changed serial in serial1, according to the Leonardo doc files, without results.

Any ideas?