@Ignore
  @Test
  public void testCreate() throws Exception {
    Thread t = monitorThread();

//        final long length = 128 * 1000 * 1000 * 1000L;
    final long length = 10 * 1000 * 1000 * 1000L;
    HugeArrayList<MutableBoolean> hugeList = new HugeArrayBuilder<MutableBoolean>() {{
      capacity = length;
    }}.create();
    List<MutableBoolean> list = hugeList;
    assertEquals(0, list.size());

    hugeList.setSize(length);

    System.gc();

    assertEquals(Integer.MAX_VALUE, list.size());
    assertEquals(length, hugeList.longSize());

    boolean b = false;
    long count = 0;
    for (MutableBoolean mb : list) {
      mb.setFlag(b = !b);
      if ((int) count++ == 0)
        System.out.println("set " + count);
    }

    b = false;
    count = 0;
    for (MutableBoolean mb : list) {
      boolean b2 = mb.getFlag();
      boolean expected = b = !b;
      if (b2 != expected)
        assertEquals(expected, b2);
      if ((int) count++ == 0)
        System.out.println("get " + count);
    }
    t.interrupt();
  }