### Question:
SessionValidityInfo { public boolean isValid() { final long timeNow = System.currentTimeMillis(); final int timeIdle = (int) ((timeNow - _thisAccessedTime) / 1000L); return _maxInactiveInterval <= 0 || timeIdle < _maxInactiveInterval; } SessionValidityInfo( final int maxInactiveInterval, final long lastAccessedTime, final long thisAccessedTime ); @Nonnull static byte[] encode( final long maxInactiveInterval, final long lastAccessedTime, final long thisAccessedTime ); @Nonnull static SessionValidityInfo decode( @Nonnull final byte[] data ); int getMaxInactiveInterval(); long getLastAccessedTime(); long getThisAccessedTime(); boolean isValid();  }### Answer:
@Test public void negativeInactivityAlwaysValid() { final SessionValidityInfo info = new SessionValidityInfo(-1, 0, 0); assertTrue(info.isValid()); }