How does the wiring in this light hookup?
Time to break out the multi-meter.  You can safely assume the two black wires from the switch are interchangeable.  But the white wires from the lamp sockets are not.  Cut that blog off that connects the two and test each side.  The outer metal ring needs to be the neutral and the center tab the hot.  Use the multi-meter to see which wire has continuance from either the ring or center tab.  Wire both center tabs (of the light socket) to one of the black wires from the switch.  

To then wire the light to the wall.  The other black will then be wired to the hot (black) and the two free whites will be wired to the neutral.