@Test public void get_max_inactive() { HttpSession hs = mockHttpSession(); int seconds = 999; expect(hs.getMaxInactiveInterval()).andReturn(seconds); replay(); Session session = new SessionImpl(null, hs, null); assertEquals(session.getMaxInactiveInterval(), seconds); verify(); }