Login

added new functionality
The you must mock HttpServletResponse. In your test you should have class who extends BaseMatcher and matches Cookie which added after success login with Cookie which you return from mock HttpServletresponse.