### Question:
JwtUtil { public Boolean validateToken(String token, User user) { String username = getUsernameFromToken(token); return (username.equals(user.getEmail()) && !isTokenExpired(token)); }  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 validateToken() { User user = new User(); user.setEmail("a@celess.cn"); assertTrue(jwtUtil.validateToken(createToken(), user)); }