.getAttribute(SecurityContextSessionStore.SECURITY_CONTEXT_SESSION_KEY);
SecurityContext verificationSc = (SecurityContext) reqSession.getAttribute(SECURITY_CONTEXT_TO_VERIFY_KEY);
Assert.assertNotNull(sc, "The security context in the session should not be null");
assertSecurityContextsAreEqual(verificationSc, sc, "Security contexts are not equal");
ForceConnectorConfig connectorConfig = ForceServiceConnector.getThreadLocalConnectorConfig();
Assert.assertNotNull(connectorConfig,
"The ForceConnectorConfig stored in the thread local should not be null when a user has logged in");
Assert.assertTrue(connectorConfig.getSessionRenewer() instanceof AuthFilter,
"An AuthFilter should be the session renewer.");
Assert.assertEquals(connectorConfig.getSessionId(), verificationSc.getSessionId(),
"Session id in the security context should match that in the connector config.");
Assert.assertEquals(connectorConfig.getServiceEndpoint(), verificationSc.getEndPoint(),
"Endpoint in the security context should match that in the connector config.");
}