How to connect lighting fixture into ceiling junction box?
Look for a switch with a yellow wire that doesn't seem to control anything. That will become the switch for the light fixture. 

Connect your light fixture green to green, white to white, and fixture black to ceiling yellow.