@Test
public void testCompareToVsEqualsConsistency() {

    TObject a1 = Convert.javaToThrift("a");
    TObject a2 = Convert.javaToThrift("A");
    Assert.assertNotEquals(a1, a2);
    Assert.assertNotEquals(0, a1.compareTo(a2));
}