@Test
public void pushAndPopAS5()
{
final SecurityConfig securityConfig = getSecurityConfig();
final SecurityContext context = getSecurityContext();
propagator.pushSecurityContext(context, null, securityConfig, as5Operations);
final org.jboss.security.SecurityContext securityContext = SecurityContextAssociation.getSecurityContext() ;
assertNotNull("securityContext", securityContext) ;
final SubjectInfo subjectInfo = securityContext.getSubjectInfo() ;
assertNotNull("subjectInfo", subjectInfo) ;
final Subject pushedSubject = subjectInfo.getAuthenticatedSubject() ;
assertEquals("Subject comparison", context.getSubject(), pushedSubject);
propagator.popSecurityContext(context, securityConfig, as5Operations);
assertNull("securityContext", SecurityContextAssociation.getSecurityContext());
}