CertificateCredentials extends TokenCredentials implements AzureTokenCredentials { @Override public AzureEnvironment getEnvironment() { return this.environment; } 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 testEnvironment() { CertificateCredentials credentials = new CertificateCredentials(domain, environment, mock(AsymmetricKeyCredentialFactory.class)); Assertions.assertEquals(environment, credentials.getEnvironment()); }