attributes.put("testAttribute", "testValue");
attributes.put("testEmptyCollection", Collections.emptyList());
attributes.put("testAttributeCollection", Arrays.asList(new String[] {"tac1", "tac2"}));
final SimplePrincipal principal = new SimplePrincipal("testPrincipal", attributes);
final MutableAuthentication authentication = new MutableAuthentication(principal);
authentication.getAttributes().put(SamlAuthenticationMetaDataPopulator.ATTRIBUTE_AUTHENTICATION_METHOD, SAMLAuthenticationStatement.AuthenticationMethod_SSL_TLS_Client);
authentication.getAttributes().put("testSamlAttribute", "value");
final List<Authentication> authentications = new ArrayList<Authentication>();
authentications.add(authentication);
final Assertion assertion = new ImmutableAssertionImpl(authentications, TestUtils.getService(), true);