### Question:
JwtUtil { public Boolean isTokenExpired(String token) { try { Date expiration = getExpirationDateFromToken(token); return expiration.before(new Date()); } catch (ExpiredJwtException e) { return true; } }  String generateToken(User user, boolean isRemember); Boolean validateToken(String token, User user); Boolean isTokenExpired(String token); String getUsernameFromToken(String token); Date getExpirationDateFromToken(String token); static final long EXPIRATION_LONG_TIME; static final long EXPIRATION_SHORT_TIME; }### Answer:
@Test public void isTokenExpired() { assertFalse(jwtUtil.isTokenExpired(createToken())); }