### Question:
Objects { public static boolean equals(Object a, Object b) { if (a == null && b == null) { return true; } else if (a == null || b == null) { return false; } else { return a.equals(b); } } private  Objects(); static boolean equals(Object a, Object b);  }### Answer:
@Test public void equals() { Integer a = new Integer(1); Integer b = new Integer(2); assertThat(Objects.equals(a, b), is(false)); assertThat(Objects.equals(null, null), is(true)); assertThat(Objects.equals(a, null), is(false)); assertThat(Objects.equals(null, b), is(false)); }