public static Comparable canonicalizeForHashLookup(Comparable value) {
        if (value instanceof Number) {
            return Numbers.canonicalizeForHashLookup(value);
        }

        return value;
    }
@Test
    public void testCanonicalization() {
        assertSame("foo", canonicalizeForHashLookup("foo"));
        assertSame(null, canonicalizeForHashLookup(null));
        assertEquals(1234L, ((Number) canonicalizeForHashLookup(1234)).longValue());
    }