@Test
public void check_redirect_needed() throws Exception
{
Request request = mockRequest();
Response response = mockResponse();
LinkSource linkSource = mockLinkSource();
MetaDataLocator locator = mockMetaDataLocator();
BaseURLSource source = mockBaseURLSource();
Link link = mockLink();
train_isSecure(request, false);
train_isSecure(locator, PAGE_NAME, true);
train_createPageRenderLink(linkSource, PAGE_NAME, link);
response.sendRedirect(link);
replay();
RequestSecurityManager manager
= new RequestSecurityManagerImpl(request, response, linkSource, locator, source);