CertificateCredentials extends TokenCredentials implements AzureTokenCredentials { @Override public String getDomain() { return this.domain; } CertificateCredentials(String domain, AzureEnvironment environment,
                                  AsymmetricKeyCredentialFactory credentialFactory); @Override String getDomain(); @Override AzureEnvironment getEnvironment(); @Override String getToken(String resource); void applyCredentialsFilter(OkHttpClient.Builder clientBuilder);  }
@Test void testDomain() { CertificateCredentials credentials = new CertificateCredentials(domain, environment, mock(AsymmetricKeyCredentialFactory.class)); Assertions.assertEquals(domain, credentials.getDomain()); }