SplunkEvent { public static Builder newBuilder() { return new AutoValue_SplunkEvent.Builder(); }  static Builder newBuilder(); abstract @Nullable Long time(); abstract @Nullable String host(); abstract @Nullable String source(); @Nullable @SerializedName("sourcetype") abstract String sourceType(); abstract @Nullable String index(); abstract @Nullable String event();  }
@Test public void testEquals() { String event = "test-event"; String host = "test-host"; String index = "test-index"; String source = "test-source"; String sourceType = "test-source-type"; Long time = 123456789L; SplunkEvent actualEvent = SplunkEvent.newBuilder() .withEvent(event) .withHost(host) .withIndex(index) .withSource(source) .withSourceType(sourceType) .withTime(time) .create(); assertEquals( SplunkEvent.newBuilder() .withEvent(event) .withHost(host) .withIndex(index) .withSource(source) .withSourceType(sourceType) .withTime(time) .create(), actualEvent); assertNotEquals( SplunkEvent.newBuilder() .withEvent("a-different-test-event") .withHost(host) .withIndex(index) .withSource(source) .withSourceType(sourceType) .withTime(time) .create(), actualEvent); }