SoftwareSerial example not working as expected?

SoftwareSerial mySerial(2, 3); // RX, TX

The Leonardo does not seem to support pin change interrupts on those pins, hence software serial won't work on them.