how to check a compressor on a refrigerator

how to check a compressor on a refrigerator