A Sydney court is shown a text message exchange between Hollywood star Rebel Wilson and a movie producer over a bathroom incident involving a young actor.