segmentFactory);
assertEquals(initialLength, store.length());
assertEquals(initialLength, store.capacity());
assertEquals(0, store.getIndexStart());
store.clear();
store.close();
// Larger length caused the store to grow capacity
int largerLength = initialLength + 500;
int expectedLength = initialLength + DynamicConstants.SUB_ARRAY_SIZE;