Wire color for alternator

I recently installed a new alternator in my 2012 Mazda CX-9, one of the wires came loose off the connector I decided to try to repair it and that didn't work and then I pulled the wires out and now I don't remember which wire goes where. I got a new connector from another vehicle from a junkyard that has different colour wires. It would be nice if somebody could post a picture of the alternator wire harness from their CX-9. There is a blue and white wire, a green and yellow wire and a white and black wire. I need to know which one goes to which pin. Thanks I'm new to the site.