itemNames, itemDescriptions, itemTypes);
String[] indexNames = new String[] { "name1", "name2" };
TabularType tabularType = new TabularType("typeName", "description", rowType, indexNames);
TabularDataSupport data = new TabularDataSupport(tabularType);
assertTrue("Null should not be equal", data.equals(null) == false);
assertTrue("Only TabularData should be equal", data.equals(new Object()) == false);
assertTrue("An instance should equal itself", data.equals(data));
TabularDataSupport data2 = new TabularDataSupport(tabularType);
assertTrue("Two different instances with the same tabular type are equal", data.equals(data2));
assertTrue("Two different instances with the same tabular type are equal", data2.equals(data));
TabularType tabularType2 = new TabularType("typeName2", "description", rowType, indexNames);
data2 = new TabularDataSupport(tabularType2);
assertTrue("Instances with different tabular type are not equal", data.equals(data2) == false);
assertTrue("Instances with different tabular type are not equal", data2.equals(data) == false);
HashMap map = new HashMap();
map.put("name1", "value1");
map.put("name2", new Integer(2));
CompositeDataSupport compData = new CompositeDataSupport(rowType, map);
HashMap map2 = new HashMap();
map2.put("name1", "value1");
map2.put("name2", new Integer(3));
CompositeDataSupport compData2 = new CompositeDataSupport(rowType, map2);
HashMap map3 = new HashMap();
map3.put("name1", "value1");
map3.put("name2", new Integer(4));
CompositeDataSupport compData3 = new CompositeDataSupport(rowType, map3);
HashMap toPut = new HashMap();
toPut.put(new Object(), compData);
toPut.put(new Object(), compData2);
toPut.put(new Object(), compData3);
data.putAll(toPut);
data2 = new TabularDataSupport(tabularType);
data2.putAll(toPut);
assertTrue("Instances with the same composite data are equal", data.equals(data2));
assertTrue("Instances with the same composite data are equal", data2.equals(data));
toPut = new HashMap();
toPut.put(new Object(), compData);
toPut.put(new Object(), compData2);
data2 = new TabularDataSupport(tabularType);
data2.putAll(toPut);
assertTrue("Instances with different composite data are not equal", data.equals(data2) == false);
assertTrue("Instances with different composite data are not equal", data2.equals(data) == false);
}