Quality Control of Cable Mounting

Cables can sometimes be soldered incorrectly.
I want to detect incorrect cable connections.