### Question:
ReverseComparableCharSequence implements ComparableCharSequence { @Override public int compareTo(final CharSequence other) { return CharSequenceUtil.compare(this, other); } ReverseComparableCharSequence(final CharSequence sequence); @Override int length(); @Override char charAt(final int index); @Override ComparableCharSequence subSequence(final int start, final int end); @Override int compareTo(final CharSequence other); @Override int hashCode(); @Override boolean equals(final Object obj); @Override String toString();  }### Answer:
@Test public void testCompareTo() { ComparableCharSequence seq; ReverseComparableCharSequence revSeq; seq = seq("gfedcba"); revSeq = new ReverseComparableCharSequence("abcdefg"); assertEquals(0, revSeq.compareTo(seq)); seq = seq("gfedcba"); revSeq = new ReverseComparableCharSequence("abcddfg"); assertTrue(revSeq.compareTo(seq) < 0); seq = seq("gfedcba"); revSeq = new ReverseComparableCharSequence("abcdffg"); assertTrue(revSeq.compareTo(seq) > 0); }