@Test
  public void testSearchAndUpdateCollection() {
    gcPrintUsed();
    int repeats = 1000; // five seconds.
    HugeArrayBuilder<MutableTypes> mtb = new HugeArrayBuilder<MutableTypes>() {
    };
    HugeArrayList<MutableTypes> mts = mtb.create();
    mts.setSize(length);
    for (MutableTypes mt : mts) {
      mt.setBoolean2(true);
      mt.setByte2((byte) 1);
    }
    gcPrintUsed();

    long start = System.nanoTime();
    for (int i = 0; i < repeats; i++) {
      for (MutableTypes mt : mts) {
        mt.setInt(mt.getInt() + 1);
      }
    }
    long time = System.nanoTime() - start;
    printUsed();
    System.out.printf("Huge Collection update one field, took an average %.1f ns.%n", (double) time / length / repeats);
  }