### Question:
IntDoublePair implements ImmutableBean, Tuple, Comparable<IntDoublePair>, Serializable { public static IntDoublePair of(int first, double second) { return new IntDoublePair(first, second); } private  IntDoublePair(
      int first,
      double second); static IntDoublePair of(int first, double second); static IntDoublePair ofPair(Pair<Integer, Double> pair); @FromString static IntDoublePair parse(String pairStr); @Override int size(); @Override ImmutableList<Object> elements(); Pair<Integer, Double> toPair(); @Override int compareTo(IntDoublePair other); @Override boolean equals(Object obj); @Override int hashCode(); @Override @ToString String toString(); static IntDoublePair.Meta meta(); @Override IntDoublePair.Meta metaBean(); int getFirst(); double getSecond();  }### Answer:
@Test public void test_compareTo() { IntDoublePair p12 = IntDoublePair.of(1, 2d); IntDoublePair p13 = IntDoublePair.of(1, 3d); IntDoublePair p21 = IntDoublePair.of(2, 1d); List<IntDoublePair> list = new ArrayList<>(); list.add(p12); list.add(p13); list.add(p21); list.sort(Comparator.naturalOrder()); assertThat(list).containsExactly(p12, p13, p21); list.sort(Comparator.reverseOrder()); assertThat(list).containsExactly(p21, p13, p12); }
@Test public void test_equals() { IntDoublePair a = IntDoublePair.of(1, 2.0d); IntDoublePair a2 = IntDoublePair.of(1, 2.0d); IntDoublePair b = IntDoublePair.of(1, 3.0d); IntDoublePair c = IntDoublePair.of(2, 2.0d); IntDoublePair d = IntDoublePair.of(2, 3.0d); assertThat(a) .isEqualTo(a) .isEqualTo(a2) .isNotEqualTo(b) .isNotEqualTo(c) .isNotEqualTo(d) .isNotEqualTo(null) .isNotEqualTo(ANOTHER_TYPE) .isNotEqualTo(Pair.of(Integer.valueOf(1), Double.valueOf(1.7d))) .hasSameHashCodeAs(a2); assertThat(b) .isNotEqualTo(a) .isEqualTo(b) .isNotEqualTo(c) .isNotEqualTo(d); assertThat(c) .isNotEqualTo(a) .isEqualTo(c) .isNotEqualTo(b) .isNotEqualTo(d); assertThat(d) .isNotEqualTo(a) .isNotEqualTo(b) .isNotEqualTo(c) .isEqualTo(d); }
@Test public void coverage() { IntDoublePair test = IntDoublePair.of(1, 1.7d); TestHelper.coverImmutableBean(test); }
@Test public void test_serialization() { assertSerialization(IntDoublePair.of(1, 1.7d)); }
@Test public void test_jodaConvert() { assertJodaConvert(IntDoublePair.class, IntDoublePair.of(1, 1.7d)); }