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