AuthenticationUtil { public static void setAuthenticationCreationTime(HttpSession session, long time) { session.setAttribute(AUTHENTICATION_CREATION_TIME, time); } private  AuthenticationUtil(); static void setAuthenticationCreationTime(HttpSession session, long time); static long getAuthenticationCreationTime(HttpSession session);  }
@Test public void setAuthenticationCreationTime() { AuthenticationUtil.setAuthenticationCreationTime(session, 123); verify(session).setAttribute("authenticationCreationTime", 123L); }