QueryRow { @Override public boolean equals(final Object obj) { return this == obj || null != obj && getClass() == obj.getClass() && isEqual((QueryRow) obj); } QueryRow(final List<Object> rowData); Object getColumnValue(final int columnIndex); @Override boolean equals(final Object obj); @Override int hashCode();  }
@Test public void assertEqual() { QueryRow queryRow1 = new QueryRow(Collections.singletonList((Object) 10)); assertTrue(queryRow1.equals(queryRow)); }
@Test public void assertEqualPartly() { QueryRow queryRow1 = new QueryRow(Collections.singletonList((Object) 10), Collections.singletonList(1)); QueryRow queryRow2 = new QueryRow(Collections.singletonList((Object) 8), Collections.singletonList(1)); assertTrue(queryRow.equals(queryRow1)); assertFalse(queryRow.equals(queryRow2)); }