@@ -0,0 +1,1787 @@
+package com.savy3.testcobolserde;%0Aimport java.util.Properties;%0A%0Aimport org.apache.hadoop.conf.Configuration;%0Aimport org.apache.hadoop.hive.serde2.SerDeException;%0Aimport org.apache.hadoop.io.Text;%0A%0Aimport com.savy3.cobolserde.CobolSerde;%0A%0Aimport junit.framework.TestCase;%0A%0A%0Apublic class testCobolSerde extends TestCase %7B%0A%09CobolSerde csd = new CobolSerde();%0A%09Configuration conf = new Configuration();%0A%09Properties tbl = new Properties();%0A%09%0A%09public void testInitializeConfigurationProperties() %7B%0A%09%09fail(%22Not yet implemented%22);%0A%09%7D%0A%0A%09public void testDeserializeWritable() throws SerDeException %7B%0A%09%09tbl.setProperty(%22cobol.layout%22, %2201 ws-var. 05 WS-MARKS-LENGTH PIC 9(3). 05 WS-marks OCCURS 0 to 25 TIMES DEPENDING ON WS-MARKS-LENGTH. 10 WS-MARK PIC 999.%22);%0A%09%09csd.initialize(conf, tbl);%0A%09%09System.out.println(csd.deserialize(new Text(%22002123123%22)).toString());%0A%09%09%0A%09%09tbl.setProperty(%22cobol.layout%22, %2201 WS-VAR. 05 WS-NAME PIC X(12). 01 wS-pas. 05 WS-MARKS-LENGTH PIC 9(3). 05 WS-marks OCCURS 0 to 25 TIMES DEPENDING ON WS-MARKS-LENGTH. 10 WS-MARK PIC 999. 10 Ws-per pic 9. 05 WS-NICKNAME PIC X(6)%22);%0A%09%09csd.initialize(conf, tbl);%0A%09%09System.out.println(csd.deserialize(new Text(%22rammanohar  00212341235manu  %5Cnsummanohar  00212341234manu  %22)).toString());%0A%09%09System.out.println(csd.deserialize(new Text(%22summanohar  00212341235manu  %22)).toString());%0A%09%09tbl.setProperty(%22cobol.layout%22, %2201 WS-VAR. 02 WS-NAME PIC X(12). 02 W-Ram. 05 WS-MARKS-LENGTH PIC 9(3). 02 ws-kanu. 03 ws-lipi. 05 WS-marks PIC 9(3). 05 WS-MARK PIC 999. 05 WS-NICKNAME PIC X(6)%22);%0A%09%09csd.initialize(conf, tbl);%0A%09%09System.out.println(csd.deserialize(new Text(%22rammanohar  002123123manu  %5Cnrummanohar  002123123manu  %22)).toString());%0A%09%09System.out.println(csd.deserialize(new Text(%22summanohar  002321123manu  %22)).toString());%0A%09%0A%09%0A%09%7D%0A%0A%7D%0A

Create testCobolSerde.java