Set extends AbstractComplexListType { @Override public String toString() { return new StringBuilder("Set{"). append(super.toString()). append("}").toString(); } Set(String name, Column listType);  Set(String name, Boolean nullable, Column listType); @Override ColumnType getType(); @Override String toString();  }
@Test public void testSetWithSameListType() { Set a1 = new Set("A", new Text("T")); Set a2 = new Set("A", new Text("T")); assertTrue(a1.equals(a2)); assertEquals(a1.toString(), a2.toString()); }
@Test public void testSetWithDifferentName() { Set a1 = new Set("A", new Text("T")); Set a2 = new Set("B", new Text("T")); assertFalse(a1.equals(a2)); assertNotEquals(a1.toString(), a2.toString()); }
@Test public void testSetWithDifferentListType() { Set a1 = new Set("A", new Text("T")); Set a2 = new Set("A", new Binary("B")); assertFalse(a1.equals(a2)); assertNotEquals(a1.toString(), a2.toString()); }