### Question:
CbDelegatedTokenCredentials extends AzureTokenCredentials { public Map<String, AuthenticationResult> getTokens() { return new HashMap<>(tokens); } CbDelegatedTokenCredentials(ApplicationTokenCredentials applicationCredentials, String redirectUrl, Map<String, AuthenticationResult> tokens,
            String clientSecret, AuthenticationContextProvider authenticationContextProvider, CBRefreshTokenClientProvider cbRefreshTokenClientProvider);  CbDelegatedTokenCredentials(ApplicationTokenCredentials applicationCredentials, String redirectUrl,
                    AuthenticationContextProvider authenticationContextProvider, CBRefreshTokenClientProvider cbRefreshTokenClientProvider);  CbDelegatedTokenCredentials(ApplicationTokenCredentials applicationCredentials, String redirectUrl, String authorizationCode, String clientSecret,
                    AuthenticationContextProvider authenticationContextProvider, CBRefreshTokenClientProvider cbRefreshTokenClientProvider); static com.microsoft.azure.credentials.DelegatedTokenCredentials fromFile(File authFile, String redirectUrl); static com.microsoft.azure.credentials.DelegatedTokenCredentials fromFile(File authFile, String redirectUrl, String authorizationCode); String clientId(); String generateAuthenticationUrl(String state); void setAuthorizationCode(String authorizationCode); @Override synchronized String getToken(String resource); Map<String, AuthenticationResult> getTokens();  }### Answer:
@Test public void testGetTokensWhenWeSetTokensThroughConstructorThenItShouldBeComeBackUntouched() { Map<String, AuthenticationResult> result = new CbDelegatedTokenCredentials(applicationTokenCredentials, REDIRECT_URL, tokens, CLIENT_SECRET, authenticationContextProvider, cbRefreshTokenClientProvider).getTokens(); assertNotNull(result); assertEquals(tokens.size(), result.size()); result.forEach((key, authenticationResult1) -> { assertTrue(tokens.containsKey(key)); assertEquals(tokens.get(key), authenticationResult1); }); verify(cbRefreshTokenClientProvider, times(1)).getCBRefreshTokenClient(anyString()); verify(cbRefreshTokenClientProvider, times(1)).getCBRefreshTokenClient(eq(format("%s/", DEFAULT_TEST_AD_ENDPOINT))); }