Objects { static boolean equals(final Object a, final Object b) { return (a == null) ? (b == null) : a.equals(b); }    }
@Test public void equals_nullValueAsFirstParam_returnFalse() { final Object objectA = null; final Object objectB = new Object(); final boolean result = Objects.equals(objectA, objectB); assertThat(result, is(false)); }
@Test public void equals_nullValueAsSecondParam_returnFalse() { final Object objectA = new Object(); final Object objectB = null; final boolean result = Objects.equals(objectA, objectB); assertThat(result, is(false)); }
@Test public void equals_nullValueAsBothParams_returnTrue() { final Object objectA = null; final Object objectB = null; final boolean result = Objects.equals(objectA, objectB); assertThat(result, is(true)); }
@Test public void equals_differentBooleanParams_returnFalse() { final boolean paramA = true; final boolean paramB = false; final boolean result = Objects.equals(paramA, paramB); assertThat(result, is(false)); }
@Test public void equals_sameBooleanParams_returnTrue() { final boolean paramA = true; final boolean paramB = true; final boolean result = Objects.equals(paramA, paramB); assertThat(result, is(true)); }