session.setValid( true );
session.setCreationTime( System.currentTimeMillis() );
getField( StandardSession.class, "lastAccessedTime" ).set( session, System.currentTimeMillis() + 100 );
session.setMaxInactiveInterval( 600 );
final Person p1 = createPerson( "foo bar", Gender.MALE, 42, "foo.bar@example.org", "foo.bar@example.com" );
final Person p2 = createPerson( "bar baz", Gender.FEMALE, 42, "bar.baz@example.org", "bar.baz@example.com" );
p1.addFriend( p2 );
p2.addFriend( p1 );
session.setAttribute( "person1", p1 );
session.setAttribute( "person2", p2 );
final byte[] bytes = _transcoder.serializeAttributes( session, session.getAttributesInternal() );