ex1.setSid(Integer.MIN_VALUE);
setShuffleKey(seg1, k2, ex1);
assertThat(cmp.compare(k1, k2), greaterThan(0));
assertThat(cmp.compare(k2, k1), lessThan(0));
Ex2 ex2 = new Ex2();
ex2.setSid(2);
ex2.setValue(100);
ex2.setStringAsString("ex2");
setShuffleKey(seg2, k1, ex2);
ex2.setSid(3);
setShuffleKey(seg2, k2, ex2);
assertThat(cmp.compare(k1, k2), is(0));
assertThat(cmp.compare(k2, k1), is(0));
setShuffleKey(seg2, k1, ex2);
ex2.setStringAsString("ex3");
setShuffleKey(seg2, k2, ex2);
assertThat(cmp.compare(k1, k2), greaterThan(0));
assertThat(cmp.compare(k2, k1), lessThan(0));
setShuffleKey(seg2, k1, ex2);
ex2.setStringAsString("");
setShuffleKey(seg2, k2, ex2);
assertThat(cmp.compare(k1, k2), lessThan(0));
assertThat(cmp.compare(k2, k1), greaterThan(0));
setShuffleKey(seg2, k1, ex2);
ex2.setString(null);
setShuffleKey(seg2, k2, ex2);
assertThat(cmp.compare(k1, k2), lessThan(0));
assertThat(cmp.compare(k2, k1), greaterThan(0));
setShuffleKey(seg1, k1, ex1);