Atletico Madrid have reached agreement with Getafe for the signing of goalkeeper Miguel Angel Moya on a three-year deal, subject to a medical.