/* (non-Javadoc)
* @see com.gemstone.gemfire.cache.DiskStoreFactory#create(java.lang.String)
*/
@Override
public DiskStore create(final String name) {
DiskStore mockDiskStore = mock(DiskStore.class, name);
when(mockDiskStore.getName()).thenReturn(name);
when(mockDiskStore.getAllowForceCompaction()).thenReturn(allowForceCompaction);
when(mockDiskStore.getAutoCompact()).thenReturn(autoCompact);
when(mockDiskStore.getCompactionThreshold()).thenReturn(compactionThreshold);
when(mockDiskStore.getDiskUsageCriticalPercentage()).thenReturn(diskUsageCriticalPercentage);
when(mockDiskStore.getDiskUsageWarningPercentage()).thenReturn(diskUsageWarningPercentage);
when(mockDiskStore.getDiskDirs()).thenReturn(diskDirs);
when(mockDiskStore.getDiskDirSizes()).thenReturn(diskDirSizes);
when(mockDiskStore.getMaxOplogSize()).thenReturn(maxOpLogSize);
when(mockDiskStore.getQueueSize()).thenReturn(queueSize);
when(mockDiskStore.getTimeInterval()).thenReturn(timeInterval);
when(mockDiskStore.getWriteBufferSize()).thenReturn(writeBufferSize);
diskStores.put(name, mockDiskStore);
return mockDiskStore;
}