@Test
public void testComparison2() throws IOException {
WritableComparator comparator = new PairOfStringFloat.Comparator();
PairOfStringFloat pair1 = new PairOfStringFloat("hi", 1.0f);
PairOfStringFloat pair2 = new PairOfStringFloat("hi", 1.0f);
PairOfStringFloat pair3 = new PairOfStringFloat("hi", 0.0f);
PairOfStringFloat pair4 = new PairOfStringFloat("a", 0.0f);
PairOfStringFloat pair5 = new PairOfStringFloat("hi", 2.0f);
assertTrue(pair1.equals(pair2));
assertFalse(pair1.equals(pair3));
assertTrue(WritableComparatorTestHarness.compare(comparator, pair1, pair2) == 0);