1. Remove the clamps and vacuum hose.
2. Apply both suction and pressure to the engine-side hose, and verify that air blows only toward that side.

Air bleeding
Brake pedal inspectionMazda 6 Service Manual: Antilock Brake System (ABS)
The ABS control unit continuously monitors the speed of each wheel. If one wheel
is about to lock up, the ABS responds by automatically releasing and reapplying
that wheel's brake.
The driver will feel a slight vibration in the brake pedal and may hear a chattering
noise from the brake system ...
Mazda 6 Service Manual: Generator removal/installation
Warning
When the battery cables are connected, touching the vehicle body with
generator terminal B will generate sparks. This can cause personal injury, fire,
and damage to the electrical components. Always disconnect the battery negative
cables before performing the following operation.
...