testing question

Hello folks,

I need to write a method that will return a PDF to the user.

Does anyone know of any documentation on how to test
such functionality?

Thanks in advance.

Regards,
Franz