public HCatRecord getWritable() throws HCatException {
    DefaultHCatRecord d = new DefaultHCatRecord();
    d.copy(this);
    return d;
  }
@Test
  public void testGetWritable() throws Exception {
    HCatRecord r = new LazyHCatRecord(getHCatRecord(), getObjectInspector()).getWritable();
    Assert.assertEquals(INT_CONST, ((Integer) r.get(0)).intValue());
    Assert.assertEquals(LONG_CONST, ((Long) r.get(1)).longValue());
    Assert.assertEquals(DOUBLE_CONST, ((Double) r.get(2)).doubleValue(), 0);
    Assert.assertEquals(STRING_CONST, r.get(3));
    Assert.assertEquals("org.apache.hive.hcatalog.data.DefaultHCatRecord", r.getClass().getName());
  }