Royal Julius (IRE), trained by Jerome Reynier in Marseille in the southeast of France, came out best in a thrilling finish for the Bahrain International Trophy.