### Question:
AvatarUpdatedRepository { public void set( final AvatarType avatarType, final LocalDateTime updatedAt ) { Objects.requireNonNull(avatarType); Objects.requireNonNull(updatedAt); final String key = keyBuilder.buildKey(avatarType); final long value = updatedAt.atZone(zoneId).toEpochSecond(); redisTemplate.opsForValue().set(key, String.valueOf(value)); }  void set(
        final AvatarType avatarType,
        final LocalDateTime updatedAt
    ); Optional<LocalDateTime> get(final AvatarType avatarType); List<Pair<AvatarType, LocalDateTime>> mget(
        final List<AvatarType> avatarTypes
    );  }### Answer:
@Test public void setTest() { final LocalDateTime now = LocalDateTime.of(2019, 5, 13, 17, 46, 12); when(keyBuilder.buildKey(AvatarType.GRAVATAR)).thenReturn(GRAVATAR_KEY); avatarUpdatedRepository.set(AvatarType.GRAVATAR, now); verify(keyBuilder).buildKey(AvatarType.GRAVATAR); verify(redisTemplate).opsForValue(); final String value = redisTemplate.opsForValue().get(GRAVATAR_KEY); assertNotNull(value); final long epochSeconds = Long.parseLong(value); assertEquals(1557737172L, epochSeconds); }