SamzaSqlRelRecord implements Serializable { @Override public int hashCode() { return hashCode; } SamzaSqlRelRecord(@JsonProperty("fieldNames") List<String> fieldNames,
      @JsonProperty("fieldValues") List<Object> fieldValues); @JsonProperty("fieldNames") List<String> getFieldNames(); @JsonProperty("fieldValues") List<Object> getFieldValues(); Optional<Object> getField(String name); @Override int hashCode(); @Override boolean equals(Object obj); @Override String toString(); boolean containsField(String name);  }
@Test public void testEquality() { SamzaSqlRelRecord relRecord1 = new SamzaSqlRelRecord(Arrays.asList("id", "name"), Arrays.asList(1L, "object")); SamzaSqlRelRecord relRecord2 = new SamzaSqlRelRecord(Arrays.asList("id", "name"), Arrays.asList(1L, "object")); assertEquals(relRecord1, relRecord2); assertEquals(relRecord1.hashCode(), relRecord2.hashCode()); }
@Test public void testInEquality() { SamzaSqlRelRecord relRecord1 = new SamzaSqlRelRecord(Arrays.asList("id", "name"), Arrays.asList(1L, "object")); SamzaSqlRelRecord relRecord2 = new SamzaSqlRelRecord(Arrays.asList("id", "name"), Arrays.asList(1L, null)); assertNotEquals(relRecord1, relRecord2); assertNotEquals(relRecord1.hashCode(), relRecord2.hashCode()); }