This page contains a link to download a sample JavaScript file. You can use this to test if your webserver is recompressing the asset.
Compressed file Original fileAfter downloading, you can compare the file size and contents with the original to determine if compression occurred.
File details: