static Builder newBuilder() {
    return new AutoValue_SplunkEventWriter.Builder();
  }
@Test
  public void eventWriterMissingToken() {

    Exception thrown =
        assertThrows(
            NullPointerException.class,
            () -> SplunkEventWriter.newBuilder().withUrl("http://test-url").build());

    assertTrue(thrown.getMessage().contains("token needs to be provided"));
  }