assertTrue("The file name should start with cos" , files[0].startsWith("cos"));
StreamCache cache = cos.getStreamCache();
assertTrue("Should get the FileInputStreamCache", cache instanceof FileInputStreamCache);
String temp = toString((InputStream)cache);
((InputStream)cache).close();
<BUG>assertEquals("Cached a wrong file", temp, TEST_STRING);
try {</BUG>
cache.reset();
fail("we expect the exception here");
} catch (Exception exception) {

assertTrue("The file name should start with cos" , files[0].startsWith("cos"));
StreamCache cache = cos.getStreamCache();
assertTrue("Should get the FileInputStreamCache", cache instanceof FileInputStreamCache);
String temp = toString((InputStream)cache);
((InputStream)cache).close();
assertEquals("Cached a wrong file", temp, TEST_STRING);
exchange.getUnitOfWork().done(exchange);
try {
cache.reset();
fail("we expect the exception here");
} catch (Exception exception) {
