A major trial involving a Royal Navy aircraft carrier is taking place in Portsmouth this week.