@SuppressWarnings({ "rawtypes", "unchecked" })
public class HiveValueReaderTest {
@Test
public void testDateMapping() throws Exception {
ScrollReader reader = new ScrollReader(new HiveValueReader(), mapping("hive-date.json"), false, "_mapping");
InputStream stream = getClass().getResourceAsStream("hive-date-source.json");
List<Object[]> read = reader.read(stream);
assertEquals(1, read.size());
Object[] doc = read.get(0);
Map map = (Map) doc[1];
System.out.println(map);
assertTrue(map.containsKey(new Text("type")));