@@ -0,0 +1,1047 @@
+package org.jrivets.beans.auth;%0A%0Aimport org.jrivets.util.SyncUtils;%0Aimport org.jrivets.util.UID;%0Aimport org.testng.annotations.Test;%0A%0Aimport static org.testng.Assert.*;%0A%0Apublic class InMemorySessionServiceTest %7B%0A%0A    @Test%0A    public void putGetTest() %7B%0A        InMemorySessionService ss = new InMemorySessionService(100000L);%0A        UID uid = UID.randomUID();%0A        Session s = ss.createNew(new BasicAuthInfo(uid, %22salt%22, %22hash%22));%0A        assertNotEquals(s.getId(), uid);%0A        assertEquals(s.entityId, uid);%0A        Session s2 = ss.get(s.getId());%0A        assertEquals(s.getId(), s2.getId());%0A        assertEquals(s.entityId, s2.entityId);%0A    %7D%0A    %0A    @Test%0A    public void expirationTest() %7B%0A        InMemorySessionService ss = new InMemorySessionService(1L);%0A        UID uid = UID.randomUID();%0A        Session s = ss.createNew(new BasicAuthInfo(uid, %22salt%22, %22hash%22));%0A        assertNotEquals(s.getId(), uid);%0A        assertEquals(s.entityId, uid);%0A        SyncUtils.sleepQuietly(1010L);%0A        assertNull(ss.get(s.getId()));%0A    %7D%0A%7D%0A

add test