public static <V> Read<V> read() {
    return new AutoValue_SparkReceiverIO_Read.Builder<V>().build();
  }
@Test
  public void testReadObjectCreationFailsIfStartPollTimeoutSecIsNull() {
    assertThrows(
        IllegalArgumentException.class,
        () -> SparkReceiverIO.<String>read().withStartPollTimeoutSec(null));
  }