public ObjectArray() {
    this(0);
  }
@Test
  public void testObjectArray() {
    ObjectArray array = new ObjectArray(10);
    for (int i = 0; i < 10; i++) {
      array.add("abc");
    }
    assertEquals(array.objects, IntStream.range(0, 10).mapToObj(i -> "abc").toArray());
    Object[] elementData = array.objects;
    array.add(1);
    assertNotSame(elementData, array.objects);
  }