boolean sessionTimeoutExpired(long now) {
        update(now);
        return sessionTimer.isExpired();
    }
@Test
    public void testSessionTimeoutExpired() {
        heartbeat.sentHeartbeat(time.milliseconds());
        time.sleep(sessionTimeoutMs + 5);
        assertTrue(heartbeat.sessionTimeoutExpired(time.milliseconds()));
    }