By transesterification of allyl 2-(7-trifluoromethyl-4-quinolinylamino)benzoate (I) with 2-[4-(m-trifluoromethylphenyl)-1-piperazinyl]ethanol (II) in refluxing toluene.