-q is for force overwrite. If we do not use -q then it asks if u want to overwrite. Successful execution of the command with -q switch and verifying that the same downloadFile exists asserts that the overwrite was successful.