@Test
public void testGenerateRefreshToken() throws Exception {

	// GIVEN
	Instant start = Instant.now().minusSeconds(1);
	Duration expiration = Duration.ofDays(90);
	
	// WHEN
	String token = jwtTokenUtil.generateRefreshToken("username");
	
	
	// THEN
	assertThat(jwtTokenUtil.getUsernameFromToken(token)).isEqualTo("username");
	assertThat(jwtTokenUtil.getIssuedAtDateFromToken(token)).isBetween(start, Instant.now());
	assertThat(jwtTokenUtil.getExpirationDateFromToken(token)).isBetween(start.plus(expiration), Instant.now().plus(expiration));
}