@Test
  public void testWhenTheFirstValueIsLargerOneIsReturned() {
    o1(2);
    o2(1);
    order(false);
    nullOrder(MAXVALUE);

    assertThat(ObjectInspectorUtils.compare(objects1, oi1, objects2, oi2, orderDesc, nullValueOption), is(1));
  }
TestObjectInspectorUtils.compare method.
int compare(Object[] o1, ObjectInspector[] oi1, Object[] o2,
      ObjectInspector[] oi2, boolean[] columnSortOrderIsDesc, NullValueOption[] nullSortOrder)
serde/src/test/org/apache/hadoop/hive/serde2/objectinspector/TestObjectInspectorUtilsCompare.java