How do I unit test a plugin with forms?

How do I unit test a plugin with forms?