SplunkWriteError { public static Builder newBuilder() { return new AutoValue_SplunkWriteError.Builder(); }  static Builder newBuilder(); abstract @Nullable Integer statusCode(); abstract @Nullable String statusMessage(); abstract @Nullable String payload();  }
@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); }