static Builder newBuilder() {
    return new AutoValue_SplunkEventWriter.Builder();
  }
@Test
  public void eventWriterInvalidURL() {
    Exception thrown =
        assertThrows(
            IllegalArgumentException.class,
            () -> SplunkEventWriter.newBuilder().withUrl("http://1.2.3").build());

    assertTrue(thrown.getMessage().contains(SplunkEventWriter.INVALID_URL_FORMAT_MESSAGE));
  }