private void assertThatArrayEquals(Object expected, Object actual) {
    assertThat(actual).isInstanceOf(expected.getClass());

    int actualLength = Array.getLength(actual);
    assertThat(actualLength).isEqualTo(Array.getLength(expected));

    for (int i = 0; i < actualLength; i++) {
      assertThat(Array.get(actual, i)).isEqualTo(Array.get(expected, i));
    }
  }
Regression test for TRAC #41770: ConcurrentRegionOperationsJUnitTest fails with duplicate
create in an oplog
geode-core/src/integrationTest/java/org/apache/geode/internal/cache/DiskRegionJUnitTest.java