@Test
public void testComparison2() throws IOException {
WritableComparator comparator = new PairOfLongString.Comparator();
PairOfLongString pair1 = new PairOfLongString(1L, "hi");
PairOfLongString pair2 = new PairOfLongString(1L, "hi");
PairOfLongString pair3 = new PairOfLongString(0L, "hi");
PairOfLongString pair4 = new PairOfLongString(0L, "a");
PairOfLongString pair5 = new PairOfLongString(2L, "hi");
assertTrue(pair1.equals(pair2));
assertFalse(pair1.equals(pair3));
assertTrue(WritableComparatorTestHarness.compare(comparator, pair1, pair2) == 0);