ObjectUtil { public static boolean same(Object obj1, Object obj2) { return obj1 == obj2; }  static boolean isNull(Object obj); static boolean isNotNull(Object obj); static boolean andIsNull(Object... objects); static boolean orIsNull(Object... objects); static boolean equals(Object obj1, Object obj2); static boolean same(Object obj1, Object obj2);  }
@Test public void testSame() { String o1 = new String("1"); String o2 = new String("1"); assertTrue(ObjectUtil.same(o1, o1)); assertFalse(ObjectUtil.same(o1, o2)); }