Flight 5787 originated at JFK, and was planned to proceed to the National Aviation Facilities Experimental Center (NAFEC) at Atlantic City Airport to perform the required training and proficiency check maneuvers.