Fine a test telling you don't have it and neither does everyone else at the airrport or aircraft. Then when you get where you are going and catch it. The test for the return leg / flight shows you are positive and are not allowed back, and if aircrew the whole flight is grounded....
Until there is a workable and sufficient vacine......