As a quick workaround, you can probably switch to using HTTP basic
authentication (Spring security should allow you to do that) for testing
purposes.
Then you can utilize Jersey's HTTPBasicAuthFilter [1] in your tests on
the client side.
If the form based login establishes some Servlet session backed
authentication
mechanism, it is IMHO anyway not suitable for a REST interface, and you
should
probably look for another authentication method even for your production
environment.
But this is based on my assumptions only, i do not know, if sessions are
used or not.
~Jakub
P.S. Btw: Have you had a chance to look at Jersey's OAuth support?