@Override
    public int hashCode()
    {
        //taken from java.lang.Long
        return (int)(value ^ (value >> 32));
    }
@Test
    void testHashCode()
    {
        for (int i = -1000; i < 3000; i += 200)
        {
            COSInteger test1 = COSInteger.get(i);
            COSInteger test2 = COSInteger.get(i);
            assertEquals(test1.hashCode(), test2.hashCode());
            
            COSInteger test3 = COSInteger.get(i + 1);
            assertNotSame(test3.hashCode(), test1.hashCode());
        }
    }