@Test
public void testComparison2() throws IOException {
WritableComparator comparator = new PairOfIntString.Comparator();
PairOfIntString pair1 = new PairOfIntString(1, "2");
PairOfIntString pair2 = new PairOfIntString(1, "2");
PairOfIntString pair3 = new PairOfIntString(1, "1");
PairOfIntString pair4 = new PairOfIntString(0, "9");
PairOfIntString pair5 = new PairOfIntString(9, "0");
assertTrue(WritableComparatorTestHarness.compare(comparator, pair1, pair2) == 0);
assertTrue(WritableComparatorTestHarness.compare(comparator, pair1, pair3) > 0);
assertTrue(WritableComparatorTestHarness.compare(comparator, pair1, pair4) > 0);
assertTrue(WritableComparatorTestHarness.compare(comparator, pair1, pair5) < 0);