### Question:
LongDoublePair implements ImmutableBean, Tuple, Comparable<LongDoublePair>, Serializable { public static LongDoublePair of(long first, double second) { return new LongDoublePair(first, second); } private  LongDoublePair(
      long first,
      double second); static LongDoublePair of(long first, double second); static LongDoublePair ofPair(Pair<Long, Double> pair); @FromString static LongDoublePair parse(String pairStr); @Override int size(); @Override ImmutableList<Object> elements(); Pair<Long, Double> toPair(); @Override int compareTo(LongDoublePair other); @Override boolean equals(Object obj); @Override int hashCode(); @Override @ToString String toString(); static LongDoublePair.Meta meta(); @Override LongDoublePair.Meta metaBean(); long getFirst(); double getSecond();  }### Answer:
@Test public void test_compareTo() { LongDoublePair p12 = LongDoublePair.of(1L, 2d); LongDoublePair p13 = LongDoublePair.of(1L, 3d); LongDoublePair p21 = LongDoublePair.of(2L, 1d); List<LongDoublePair> 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() { LongDoublePair a = LongDoublePair.of(1L, 2.0d); LongDoublePair a2 = LongDoublePair.of(1L, 2.0d); LongDoublePair b = LongDoublePair.of(1L, 3.0d); LongDoublePair c = LongDoublePair.of(2L, 2.0d); LongDoublePair d = LongDoublePair.of(2L, 3.0d); assertThat(a) .isEqualTo(a) .isEqualTo(a2) .isNotEqualTo(b) .isNotEqualTo(c) .isNotEqualTo(d) .isNotEqualTo(null) .isNotEqualTo(ANOTHER_TYPE) .isNotEqualTo(Pair.of(Long.valueOf(1L), 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() { LongDoublePair test = LongDoublePair.of(1L, 1.7d); TestHelper.coverImmutableBean(test); }
@Test public void test_serialization() { assertSerialization(LongDoublePair.of(1L, 1.7d)); }
@Test public void test_jodaConvert() { assertJodaConvert(LongDoublePair.class, LongDoublePair.of(1L, 1.7d)); }