@Test
  public void getElementAtIndex_emptyArray_returnsDefaultValue() {
    Object[] emptyArray = new Object[] {};
    String defaultValue = testName.getMethodName();

    assertThat(getElementAtIndex(emptyArray, 0, defaultValue)).isEqualTo(defaultValue);
  }
Unit tests for {@link ArrayUtils}.

@since GemFire 7.x
geode-core/src/test/java/org/apache/geode/internal/util/ArrayUtilsTest.java