* Test to verify cache's purging if cache current size exceeds
* cachePurgeTrigFactor * size.
*/
public void testAutoPurgeWithPendingUpload() {
try {
AsyncUploadCache pendingFiles = new AsyncUploadCache();
pendingFiles.init(TARGET_DIR, CACHE_DIR, 100);
pendingFiles.reset();
LocalCache cache = new LocalCache(CACHE_DIR, TEMP_DIR, 400, 0.95,
0.70, pendingFiles);
Random random = new Random(12345);
byte[] data = new byte[125];
Map<String, byte[]> byteMap = new HashMap<String, byte[]>();