1. Remove the trunk lid trim. (See TRUNK LID TRIM REMOVAL/INSTALLATION)
2. Disconnect the trunk compartment light switch connector.
3. Inspect for continuity between the trunk compartment light switch terminals using an ohmmeter.


Trunk compartment light bulb removal/installation
Courtesy light bulb removal/installationMazda 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.
...
Mazda 6 Service Manual: Range of topics
This manual contains procedures for performing all required service
operations. The procedures are divided into the following five basic
operations:
Removal/Installation
Disassembly/Assembly
Replacement
Inspection
Adjustment
Simple operations which can be perf ...