*
* @throws Exception for any problem
*/
public void testEquals() throws Exception
{
TableMetaType tableType = initTableType();
TableValueSupport data = new TableValueSupport(tableType);
assertNotSame("Null should not be equal", data, null);
assertNotSame("Only TableValues should be equal", data, new Object());
assertEquals("An instance should equal itself", data, data);
TableValueSupport data2 = new TableValueSupport(tableType);
assertEquals("Two different instances with the same table type are equal", data, data2);
assertEquals("Two different instances with the same table type are equal", data2, data);
TableMetaType tableType2 = initTableType2();
data2 = new TableValueSupport(tableType2);
assertNotSame("Instances with different table type are not equal", data, data2);
assertNotSame("Instances with different table type are not equal", data2, data);