### Question:
AvatarUpdatedRepository { public List<Pair<AvatarType, LocalDateTime>> mget( final List<AvatarType> avatarTypes ) { Objects.requireNonNull(avatarTypes); final List<String> keys = avatarTypes.stream() .map(Objects::requireNonNull) .map(keyBuilder::buildKey) .collect(Collectors.toUnmodifiableList()); final List<String> values = redisTemplate.opsForValue().multiGet(keys); if (CollectionUtils.isEmpty(values)) { return Collections.emptyList(); } final var items = ImmutableList.<Pair<AvatarType, LocalDateTime>>builder(); for (int i = 0; i < values.size(); ++i) { if (values.get(i) != null) { final AvatarType avatarType = avatarTypes.get(i); final long epochSeconds = Long.parseLong(values.get(i)); final Instant instant = Instant.ofEpochSecond(epochSeconds); final LocalDateTime updatedAt = LocalDateTime.ofInstant(instant, zoneId); items.add(Pair.of(avatarType, updatedAt)); } } return items.build(); }  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 mgetTest() { final List<AvatarType> avatarTypes = List.of( AvatarType.GRAVATAR, AvatarType.SLACK, AvatarType.TWITTER); when(keyBuilder.buildKey(AvatarType.GRAVATAR)).thenReturn(GRAVATAR_KEY); when(keyBuilder.buildKey(AvatarType.SLACK)).thenReturn(SLACK_KEY); when(keyBuilder.buildKey(AvatarType.TWITTER)).thenReturn(TWITTER_KEY); redisTemplate.opsForValue().set(GRAVATAR_KEY, String.valueOf(1557737172L)); redisTemplate.opsForValue().set(SLACK_KEY, String.valueOf(1557738119L)); redisTemplate.opsForValue().set(TWITTER_KEY, String.valueOf(1557670564L)); final var items = avatarUpdatedRepository.mget(avatarTypes); assertEquals(3, items.size()); assertEquals(AvatarType.GRAVATAR, items.get(0).getKey()); assertEquals( LocalDateTime.of(2019, 5, 13, 17, 46, 12), items.get(0).getValue()); assertEquals(AvatarType.SLACK, items.get(1).getKey()); assertEquals( LocalDateTime.of(2019, 5, 13, 18, 1, 59), items.get(1).getValue()); assertEquals(AvatarType.TWITTER, items.get(2).getKey()); assertEquals( LocalDateTime.of(2019, 5, 12, 23, 16, 4), items.get(2).getValue()); }