2007 Mercedes S550

I need to replace the downstream o2 sensor and bought a universal one...the wires are different colors than the one that's on the car... So how do I know if I'm putting it together correctly? Is there some sort of conversion chart or something? Does anyone have any info that could help?
Thanks