public static Builder newBuilder() {
    return new AutoValue_SplunkWriteError.Builder();
  }
@Test
  public void testEquals() {

    String payload = "test-payload";
    String message = "test-message";
    Integer statusCode = 123;

    SplunkWriteError actualError =
        SplunkWriteError.newBuilder()
            .withPayload(payload)
            .withStatusCode(statusCode)
            .withStatusMessage(message)
            .create();

    assertEquals(
        SplunkWriteError.newBuilder()
            .withPayload(payload)
            .withStatusCode(statusCode)
            .withStatusMessage(message)
            .create(),
        actualError);

    assertNotEquals(
        SplunkWriteError.newBuilder()
            .withPayload(payload)
            .withStatusCode(statusCode)
            .withStatusMessage("a-different-message")
            .create(),
        actualError);
  }