Sailors and pilots have been put through their paces ahead of a a major exercise in the North Sea.