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: Blind Spot Monitoring (BSM) (Some models)
The Blind Spot Monitoring (BSM) is designed to assist the driver in checking
the area to the rear of the vehicle on both sides during lane changes by notifying
the driver of the presence of vehicles approaching from the rear in an adjacent
lane.
The Blind Spot Monitoring (BSM) detects vehicle ...
Mazda 6 Service Manual: Sas unit configuration
1. Connect the SST (WDS or equivalent) to the DLC-2.
2. Input vehicle information following the directions on the screen.
3. Select Module programming.
4. Select Programmable module installation.
5. Select the following items and perform procedures according to directions
on the screen.
...