Bauke Mollema was victorious in the Clasica San Sebastian one-day classic in Spain after a devastating attack on the final climb.