@Test
public void testComparison2() throws IOException {
WritableComparator comparator = new PairOfIntFloat.Comparator();
PairOfIntFloat pair1 = new PairOfIntFloat(1, 2.0f);
PairOfIntFloat pair2 = new PairOfIntFloat(1, 2.0f);
PairOfIntFloat pair3 = new PairOfIntFloat(1, 1.0f);
PairOfIntFloat pair4 = new PairOfIntFloat(0, 9.0f);
PairOfIntFloat pair5 = new PairOfIntFloat(9, 0.0f);
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);