md.setMaxInactiveInterval(20000);
ts = Long.valueOf(System.currentTimeMillis());
sessionData = new MockOutgoingSessionData(id, 1, ts, md, null);
testee.storeSessionData(sessionData);
IncomingDistributableSessionData incoming = testee.getSessionData(id, true);
assertEquals(1, incoming.getVersion());
assertEquals(ts.longValue(), incoming.getTimestamp());
assertEquals(md.getId(), incoming.getMetadata().getId());
assertEquals(md.getCreationTime(), incoming.getMetadata().getCreationTime());
assertEquals(md.isNew(), incoming.getMetadata().isNew());
assertEquals(md.isValid(), incoming.getMetadata().isValid());
assertEquals(md.getMaxInactiveInterval(), incoming.getMetadata().getMaxInactiveInterval());
assertTrue(incoming.providesSessionAttributes());
assertEquals(attrs, incoming.getSessionAttributes());
}