Steven Cummings earned the stage win by beating Ryder Hesjedal in a two-man sprint to the finish, but it was Tony Martin who won the GC for the second consecutive time.