Railroads have strict government-approved air brake testing procedures for various circumstances when assembling trains or switching out cars en route.
The connections typically consist of several air hoses for controlling the air brake system, and an electrical cable for the control of the traction equipment.