### Question:
BasicIBMOAuthCredentials implements IBMOAuthCredentials { @Override public TokenManager getTokenManager() { return tokenManager; } BasicIBMOAuthCredentials(String apiKey, String serviceInstanceId);  BasicIBMOAuthCredentials(TokenManager tokenManager);  BasicIBMOAuthCredentials(TokenManager tokenManager, String serviceInstanceId);  BasicIBMOAuthCredentials(TokenProvider tokenProvider); @Override String getAWSAccessKeyId(); @Override String getAWSSecretKey(); @Override TokenManager getTokenManager(); @Override String getApiKey(); @Override String getServiceInstanceId();  }### Answer:
@Test public void constructorShouldAcceptTokenManager() { TokenManager tokenManger = new TokenManagerUtil(); IBMOAuthCredentials oAuthCreds = new BasicIBMOAuthCredentials(tokenManger); assertTrue(oAuthCreds.getTokenManager().getToken().equals("TokenManagerAccessToken")); }
@Test public void constructorShouldAcceptTokenProvider() { TokenProvider tokenProvider = new TokenProviderUtil(); IBMOAuthCredentials oAuthCreds = new BasicIBMOAuthCredentials(tokenProvider); assertTrue(oAuthCreds.getTokenManager().getToken().equals("ProviderAccessToken")); }