### Question:
V6FormsAutoLoginRule extends AuthenticationRule { @Override public boolean doAuthorize(final HttpServletRequestAccessor request, HttpServletResponse response, final TenantIdAccessor tenantIdAccessor) throws ServletException { final long tenantId = tenantIdAccessor.ensureTenantId(); return doAutoLogin(request, response, tenantId); }  @Override boolean doAuthorize(final HttpServletRequestAccessor request, HttpServletResponse response, final TenantIdAccessor tenantIdAccessor);  }### Answer:
@Test public void testWeAreNotAutoLoggedWhenNotConfigured() throws Exception { doReturn("process3--2.9").when(request).getAutoLoginScope(); doReturn(1L).when(tenantAccessor).getRequestedTenantId(); when(autoLoginCredentialsFinder.getCredential(new ProcessIdentifier("process3--2.9"),1L)).thenReturn(null); final boolean authorized = rule.doAuthorize(request, response, tenantAccessor); assertFalse(authorized); }