What happens when Serial1 is directly connected to Serial2/3 on Mega 2560?

Which port do you check to see if there is a character available?
Which port do you read that character from?