How to check when buying a lens ?How to test the lens ?

How to test the lens in the shop ?