fos = new FileOutputStream(f);
fos.write(byteMap.get("a3"));
fos.close();
result = cache.store("a3", f, true);
assertTrue("should be able to add to pending upload",
result.canAsyncUpload());
assertEquals(new ByteArrayInputStream(byteMap.get("a1")),
cache.getIfStored("a1"));
assertEquals(new ByteArrayInputStream(byteMap.get("a2")),
cache.getIfStored("a2"));