    @Test
    public void testCompare() throws Exception {

        assertTrue(Util.compare("foo", "bar") > 1);
        assertTrue(Util.compare("bar", "foo") < 1);
        assertEquals(0, Util.compare("foo", "foo"));
        assertEquals(-1, Util.compare(null, "foo"));
        assertEquals(1, Util.compare("foo", null));
        assertEquals(0, Util.compare(null, null));
    }