public StoreForTest(final int currentDataModelIdentifier,
final InputStreamAndSource dataModelConversionDefInputStream,
final File path, final boolean proxyMode, final int pageSize,
final int maxPage, final boolean garbageManagement,
final boolean crashSafeMode) throws StoreException {
final StoreProperties storeProperties = new StoreProperties();
storeProperties.setDataModelIdentifier(currentDataModelIdentifier);
storeProperties
.setDataModelConversionDefInputStream(dataModelConversionDefInputStream);
storeProperties
.setFileAccessMode(EnumFileAccessMode.MAPPED_RANDOM_FILE_ACCESS);
storeProperties.setMaxBufferSize(8 * 1024);
storeProperties.setMaxNumberOfBuffer(32);
storeProperties.setPathName(path.getPath());
storeProperties.setProxyMode(proxyMode);
storeProperties.setGarbageManagement(garbageManagement);
storeProperties.setCrashSafeMode(crashSafeMode);
storeProperties.setUseCacheMode(true);
storeProperties.setMaxPage(maxPage);
storeProperties.setPageSize(pageSize);
store = new Store(storeProperties);
}