1. Disconnect the negative battery cable.
2. Remove the washer tank. (See WASHER TANK REMOVAL/INSTALLATION)
3. Connect battery positive voltage to the terminal B and ground to the terminal A of the motor.
4. Verify that the rear washer motor operates.

Rear washer motor removal/installation
Rear wiper motor removal/installationMazda 6 Service Manual: Center panel module removal/installation
1. Cancel the anti-theft operation. (with anti-theft system) (See ANTI-THEFT
SYSTEM.)
2. Disconnect the negative battery cable.
3. Remove the glove compartment.
4. Remove the rear console.
5. Remove in the order indicated in the table.
6. Install in the reverse order of removal.
Caution
...
Mazda 6 Service Manual: Relay inspection
Relay Type
Four-terminal
Type A
1. Remove the relay.
2. Inspect for continuity between the relay terminals using an ohmmeter.
If not as specified, replace the relay.
Type B
1. Remove the relay.
2. Inspect for continuity between the relay terminals using an ohmmeter.
If not as ...