@Test
  /**
   * Make sure you can create a batch and that all columns are the
   * default size.
   */
  public void testVectorizedRowBatchCreate() {
    VectorizedRowBatch batch = makeBatch();
    Assert.assertEquals(3, batch.numCols);
    Assert.assertEquals(VectorizedRowBatch.DEFAULT_SIZE, batch.size);
    Assert.assertEquals(((LongColumnVector) batch.cols[0]).vector.length,
        VectorizedRowBatch.DEFAULT_SIZE);
    Assert.assertEquals(((DoubleColumnVector) batch.cols[1]).vector.length,
        VectorizedRowBatch.DEFAULT_SIZE);
    Assert.assertEquals(((BytesColumnVector) batch.cols[2]).vector.length,
        VectorizedRowBatch.DEFAULT_SIZE);
  }
Test creation and basic manipulation of VectorizedRowBatch.
ql/src/test/org/apache/hadoop/hive/ql/exec/vector/TestVectorizedRowBatch.java