public void testVerticaSplit() throws Exception {
if(!AllTests.isSetup()) {
return;
}
VerticaInputSplit input = getVerticaSplit(true);
VerticaInputSplit rem_input = new VerticaInputSplit();
DataOutputBuffer out = new DataOutputBuffer();
DataInputBuffer in = new DataInputBuffer();
input.write(out);
in.reset(out.getData(), out.getLength());
rem_input.readFields(in);
assertEquals("Serialized segment params do not match", rem_input.getSegmentParams(), input.getSegmentParams());
assertEquals("Serialized start does not match", rem_input.getStart(), input.getStart());
assertEquals("Serialized length does not match", rem_input.getLength(), input.getLength());
}