static Builder newBuilder() {
    return new AutoValue_SplunkEventWriter.Builder();
  }
@Test
  public void eventWriterMissingURLProtocol() {
    Exception thrown =
        assertThrows(
            IllegalArgumentException.class,
            () -> SplunkEventWriter.newBuilder().withUrl("test-url").build());

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