### Question:
DisplayCutoutCompat { @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } DisplayCutoutCompat other = (DisplayCutoutCompat) o; return mDisplayCutout == null ? other.mDisplayCutout == null : mDisplayCutout.equals(other.mDisplayCutout); } DisplayCutoutCompat(Rect safeInsets, List<Rect> boundingRects); private  DisplayCutoutCompat(Object displayCutout); int getSafeInsetTop(); int getSafeInsetBottom(); int getSafeInsetLeft(); int getSafeInsetRight(); List<Rect> getBoundingRects(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString();  }### Answer:
@Test public void testEquals() { assertEquals(mCutoutTopBottomClone, mCutoutTopBottom); if (SDK_INT >= 28) { assertNotEquals(mCutoutTopBottom, mCutoutLeftRight); } }