@Test
public void build_throwsException_whenInplaceSeekLimitLowerThanZero() {

  long inplaceSeekLimit = -123;
  GoogleCloudStorageReadOptions.Builder builder =
      GoogleCloudStorageReadOptions.builder().setInplaceSeekLimit(inplaceSeekLimit);
  IllegalStateException e = assertThrows(IllegalStateException.class, builder::build);
  assertThat(e)
      .hasMessageThat()
      .isEqualTo("inplaceSeekLimit must be non-negative! Got " + inplaceSeekLimit);
}