@Test
@Theory
public void testCompareTo(Object q1) {

    Object q2 = increase(q1);
    Value v1 = Variables.register("v1",
            Value.wrap(Convert.javaToThrift(q1)));
    Value v2 = Variables.register("v2",
            Value.wrap(Convert.javaToThrift(q2)));
    Assert.assertTrue(v1.compareTo(v2) < 0);
}