public void testArraySizeChange() throws StoreException,
StoreInvalidClassException, StoreNotSerializableException,
StoreClassNotFoundException, StoreDataCorruptedException,
HeapException, StoreTooBigForSerializationException {
logger.info("testNotEmptyArray3");
final BobIntegerArray bobArray = new BobIntegerArray();
store.setRoot(bobArray);
final int[] originalValues = new int[] { 1, 2 };
bobArray.setValues(originalValues);
store.save(true, false);
// store.checkIntegrity();
DATA_MANAGER_INTEGRITY_CHECKER.checkIntegrity(dataManager);
final long sizeFor2 = store.usedSize();
BobIntegerArray read = (BobIntegerArray) store.readAndGetRoot();
final int[] newValues = new int[] { 1, 2, 3, 4, 5, 6 };
read.setValues(newValues);
store.save(true, false);
// store.checkIntegrity();
DATA_MANAGER_INTEGRITY_CHECKER.checkIntegrity(dataManager);
final long sizeForALot = store.usedSize();
read = (BobIntegerArray) store.readAndGetRoot();
assertTrue("arrays must be equals",// NOPMD
/**/Arrays.equals(newValues, read.getValues()));
/* may be failed because not data wrote under minimum data record size */
assertTrue("memory used must increase", sizeForALot > sizeFor2);
}