}
private void checkAddressArrayFactory(AddressArray array) throws Exception {
int length = array.length();
AddressArrayFactory factory1 = new AddressArrayFactory(true);
AddressArrayFactory factory2 = new AddressArrayFactory(false);
AddressArray addrArray1 = factory1.createDynamicAddressArray(
getHomeDir(), getBatchSize(), getNumSyncBatches());
AddressArray addrArray2 = factory2.createDynamicAddressArray(
getHomeDir(), getBatchSize(), getNumSyncBatches());
assertEquals(length, addrArray1.length());
assertEquals(length, addrArray2.length());