import junit.framework.TestCase;
import org.apache.hadoop.hive.common.type.HiveChar;
public class TestHiveCharWritable extends TestCase {
public void testConstructor() throws Exception {
HiveCharWritable hcw1 = new HiveCharWritable(new HiveChar("abc", 5));
assertEquals("abc ", hcw1.toString());
HiveCharWritable hcw2 = new HiveCharWritable(hcw1);
assertEquals("abc ", hcw2.toString());
}