@SuppressWarnings({"rawtypes", "unchecked"})

@Test
public void testCompare() {
  final Object[][] testParameters = new Object[][] {{"a", "a", 0}, {7, 1, 1}, {"ab", "abc", -1}};
  assertEquals(-1, ObjectUtils.compare(null, "a"));
  for (final Object[] testParameter : testParameters) {
    int expected = (Integer) testParameter[2];
    Comparable o1 = (Comparable) testParameter[0];
    Object o2 = (Object) testParameter[1];
    assertEquals(expected, ObjectUtils.compare(o1, o2));
  }
}