What happens when a wave reaches the boundary of a new media?

it would reflect back.