private static Map<String, List<String>> splitQuery(final String fragment) {
        if (StringUtils.isBlank(fragment)) {
            return new HashMap<>();
        }
        return Arrays
            .stream(fragment.split("&"))
            .map(OAuth20TokenAuthorizationResponseBuilderTests::splitQueryParameter)
            .collect(Collectors.groupingBy(AbstractMap.SimpleImmutableEntry::getKey,
                LinkedHashMap::new, Collectors.mapping(Map.Entry::getValue, Collectors.toList())));
    }
This is {@link OAuth20TokenAuthorizationResponseBuilderTests}.

@author David Albrecht
@since 6.1.3
support/cas-server-support-oauth/src/test/java/org/apereo/cas/support/oauth/web/response/callback/OAuth20TokenAuthorizationResponseBuilderTests.java