Three weeks before the start of the Tour de France, favourite Primoz Roglic has completed a successful dress rehearsal by winning the difficult Tour of the Dauphiné.