@Test
  public void testVarCharToCharEqualitySize() {
    VarcharTypeInfo vcharTypeInfo = new VarcharTypeInfo(10);
    CharTypeInfo charTypeInfo = new CharTypeInfo(10);

    Assert.assertNotEquals(vcharTypeInfo, charTypeInfo);
  }
Test that VARCHAR(10) and CHAR(10) are not considered to be the same.
serde/src/test/org/apache/hadoop/hive/serde2/typeinfo/TestBaseCharTypeInfo.java