Try it with manual focus.
Then try turning the small metal screw in the lens base and see if it will AF. You will have to turn it many times.
If both work, the odds are good it's fine.
You seriously want to send your new lens to some random person?
Failing that, take it to the camera store and try it on a D7000 or D3.