}
public static VectorizedRowBatch getBatchForStringMath() {
VectorizedRowBatch batch = new VectorizedRowBatch(3);
LongColumnVector inL;
BytesColumnVector inS, outS;
inL = new LongColumnVector();
inS = new BytesColumnVector();
outS = new BytesColumnVector();
inL.vector[0] = 0;
inL.vector[1] = 255;
inL.vector[2] = 0;
inS.initBuffer();
try {
inS.setVal(0, "00".getBytes("UTF-8"), 0, 2);
inS.setVal(1, "3232".getBytes("UTF-8"), 0, 4);
byte[] bad = "bad data".getBytes("UTF-8");
inS.setVal(2, bad, 0, bad.length);
} catch (UnsupportedEncodingException e) {
e.printStackTrace();
Assert.assertTrue(false);
}