@Test
public void serviceAccountEmailServiceAccountCredentials() {

  var credentials = ServiceAccountCredentials.newBuilder()
      .setClientEmail(SERVICE_ACCOUNT)
      .setPrivateKey(privateKey)
      .build();
  assertThat(ServiceAccounts.serviceAccountEmail(credentials), is(SERVICE_ACCOUNT));
}