FastByteArrayProvider { public FastByteArrayProvider (final int capacity) { this.capacity = capacity; arrays = new byte[capacity][]; } FastByteArrayProvider(final int capacity); byte[] getArray(final int length); byte[][] getAll();  }
@Test public void testFastByteArrayProvider () { int capacity = 13; FastByteArrayProvider p = new FastByteArrayProvider(capacity); assert (p.getAll().length == capacity); }