Consider if a file is encrypted using command
gpg --output test.txt.gpg --encrypt --recipient firstname.lastname@example.org test.txt
Now, consider another person received
test.txt.gpg the the pub key
email@example.com, how to perform a check to make sure the file is really encrypted using the pub key?