@Test
public void build_throwsException_whenMaxBytesRewrittenPerCallNotMbMultiple() {

  long maxBytesRewrittenPerCall = 1;
  GoogleCloudStorageOptions.Builder builder =
      GoogleCloudStorageOptions.builder().setMaxBytesRewrittenPerCall(maxBytesRewrittenPerCall);
  IllegalArgumentException e = assertThrows(IllegalArgumentException.class, builder::build);
  assertThat(e)
      .hasMessageThat()
      .isEqualTo(
          "maxBytesRewrittenPerCall must be an integral multiple of 1 MiB (1048576), but was: "
              + maxBytesRewrittenPerCall);
}