some of these method seem to be the same as ones in HCatProcessTest, probably we can move these to HCatUtil/Util classes.