@Test
public void encryptionKey_hide_whenSetEncryptionKey() {

  GoogleCloudStorageOptions.Builder builder =
      GoogleCloudStorageOptions.builder()
          .setEncryptionAlgorithm("AES256")
          .setEncryptionKey(RedactedString.create("test-key"))
          .setEncryptionKeyHash(RedactedString.create("test-key-hash"));
  GoogleCloudStorageOptions options = builder.build();
  String optionsString = options.toString();
  assertThat(optionsString).contains("encryptionKey=<redacted>");
  assertThat(optionsString).contains("encryptionKeyHash=<redacted>");
}