expectedStorageDirFile.mkdirs();
expectedDiskCache = new OReadWriteDiskCache(400L * 1024 * 1024 * 1024, 1648L * 1024 * 1024,
OGlobalConfiguration.DISK_CACHE_PAGE_SIZE.getValueAsInteger() * 1024, 1000000, 100, expectedStorage, null, false, false);
OStorageVariableParser variableParser = new OStorageVariableParser(expectedStorageDir);
OAtomicOperationsManager atomicOperationsManager = new OAtomicOperationsManager(null);
when(expectedStorage.getStorageTransaction()).thenReturn(null);
when(expectedStorage.getAtomicOperationsManager()).thenReturn(atomicOperationsManager);
when(expectedStorage.getDiskCache()).thenReturn(expectedDiskCache);