Redirect code in spring mvc tests taken from HttpStatus