//-------------------------------------------------------------------------
        public virtual void test_compareTo()
        {
            ObjIntPair <string> p12 = ObjIntPair.of("1", 2);
            ObjIntPair <string> p13 = ObjIntPair.of("1", 3);
            ObjIntPair <string> p21 = ObjIntPair.of("2", 1);

            assertTrue(p12.CompareTo(p12) == 0);
            assertTrue(p12.CompareTo(p13) < 0);
            assertTrue(p12.CompareTo(p21) < 0);

            assertTrue(p13.CompareTo(p12) > 0);
            assertTrue(p13.CompareTo(p13) == 0);
            assertTrue(p13.CompareTo(p21) < 0);

            assertTrue(p21.CompareTo(p12) > 0);
            assertTrue(p21.CompareTo(p13) > 0);
            assertTrue(p21.CompareTo(p21) == 0);
        }
//JAVA TO C# CONVERTER TODO TASK: Most Java annotations will not have direct .NET equivalent attributes:
//ORIGINAL LINE: @Test(expectedExceptions = ClassCastException.class) public void test_compareTo_notComparable()
        public virtual void test_compareTo_notComparable()
        {
            ThreadStart notComparable = () =>
            {
            };
            ObjIntPair <ThreadStart> test1 = ObjIntPair.of(notComparable, 2);
            ObjIntPair <ThreadStart> test2 = ObjIntPair.of(notComparable, 2);

            test1.CompareTo(test2);
        }