GrizzlySession extends Session { public long access() { final long localTimeStamp = System.currentTimeMillis(); timestamp = localTimeStamp; isNew = false; return localTimeStamp; }  @Override String getIdInternal(); @Override void setIdInternal(final String id); boolean isValid(); void setValid(final boolean isValid); boolean isNew(); long getCreationTime(); void setCreationTime(final long creationTime); long getTimestamp(); void setTimestamp(final long timestamp); long access();  }
@Test public void access() { GrizzlySession s = new GrizzlySession(); assertTrue(s.isNew()); assertEquals(System.currentTimeMillis(), s.access()); assertFalse(s.isNew()); }