### Question:
OAuthClientUtils { public static ClientAccessToken fromMapToClientToken(Map<String, String> map) { return fromMapToClientToken(map, null); } private  OAuthClientUtils(); static URI getAuthorizationURI(String authorizationServiceURI,
                                          String clientId,
                                          String redirectUri,
                                          String state,
                                          String scope); static UriBuilder getAuthorizationURIBuilder(String authorizationServiceURI,
                                          String clientId,
                                          String redirectUri,
                                          String state,
                                          String scope); static UriBuilder getAuthorizationURIBuilder(String authorizationServiceURI,
                                                 String clientId,
                                                 String scope); static ClientAccessToken getAccessToken(WebClient accessTokenService,
                                                   Consumer consumer,
                                                   AccessTokenGrant grant); static ClientAccessToken getAccessToken(String accessTokenServiceUri,
                                                   Consumer consumer,
                                                   AccessTokenGrant grant,
                                                   boolean setAuthorizationHeader); static ClientAccessToken getAccessToken(WebClient accessTokenService,
                                                   Consumer consumer,
                                                   AccessTokenGrant grant,
                                                   boolean setAuthorizationHeader); static ClientAccessToken getAccessToken(WebClient accessTokenService,
                                                   AccessTokenGrant grant); static ClientAccessToken getAccessToken(WebClient accessTokenService,
                                                   AccessTokenGrant grant,
                                                   Map<String, String> extraParams); static ClientAccessToken getAccessToken(WebClient accessTokenService,
                                                   Consumer consumer,
                                                   AccessTokenGrant grant,
                                                   Map<String, String> extraParams,
                                                   boolean setAuthorizationHeader); static ClientAccessToken refreshAccessToken(WebClient accessTokenService,
                                                       ClientAccessToken at); static ClientAccessToken refreshAccessToken(WebClient accessTokenService,
                                                       Consumer consumer,
                                                       ClientAccessToken at); static ClientAccessToken refreshAccessToken(WebClient accessTokenService,
                                                       Consumer consumer,
                                                       ClientAccessToken at,
                                                       String scope,
                                                       boolean setAuthorizationHeader); static ClientAccessToken getAccessToken(WebClient accessTokenService,
                                                   Consumer consumer,
                                                   AccessTokenGrant grant,
                                                   Map<String, String> extraParams,
                                                   String defaultTokenType,
                                                   boolean setAuthorizationHeader); static ClientAccessToken fromMapToClientToken(Map<String, String> map); static ClientAccessToken fromMapToClientToken(Map<String, String> map,
                                                         String defaultTokenType); static String createAuthorizationHeader(ClientAccessToken accessToken); static String createAuthorizationHeader(ClientAccessToken accessToken,
                                                   HttpRequestProperties httpProps); static void setAuthorizationHeader(WebClient wc, ClientAccessToken accessToken); static void setAuthorizationHeader(WebClient wc,
                                              ClientAccessToken accessToken,
                                              String httpVerb); static AuthorizationMetadata getAuthorizationMetadata(String issuerURL);  }### Answer:
@Test public void fromMapToClientToken() { final Map<String, String> map = new HashMap<>(); final String accessToken = "SlAV32hkKG"; map.put(OAuthConstants.ACCESS_TOKEN, accessToken); final String tokenType = "Bearer"; map.put(OAuthConstants.ACCESS_TOKEN_TYPE, tokenType); final String refreshToken = "8xLOxBtZp8"; map.put(OAuthConstants.REFRESH_TOKEN, refreshToken); final String expiresIn = "3600"; map.put(OAuthConstants.ACCESS_TOKEN_EXPIRES_IN, expiresIn); final ClientAccessToken token = OAuthClientUtils.fromMapToClientToken(map); assertEquals(accessToken, token.getTokenKey()); assertEquals(tokenType, token.getTokenType()); assertEquals(refreshToken, token.getRefreshToken()); assertEquals(Long.parseLong(expiresIn), token.getExpiresIn()); }