KeyFieldBasedComparator comp = new KeyFieldBasedComparator();
comp.configure(conf);
DataOutputBuffer out1 = serialize(l1);
DataOutputBuffer out2 = serialize(l2);
assertThat(options, comp.compare(out1.getData(), 0, out1.getLength(), out2.getData(), 0, out2.getLength()), is(c));
}
public static DataOutputBuffer serialize(Writable writable) throws IOException {
DataOutputBuffer out = new DataOutputBuffer();
DataOutputStream dataOut = new DataOutputStream(out);