// prepare
String propertyId = IdGenerator.generate();
ValueData value =
new StreamPersistedValueData(0, new FileInputStream(testFile), SpoolConfig.getDefaultSpoolConfig());
fch.write(propertyId, value, new SimpleChangedSizeHandler());
fch.commit();
long initialSize = calcDirSize(rootDir);
try
{
fch = openCASChannel(digestType);
fch.write(new String(propertyId),
new StreamPersistedValueData(0, new FileInputStream(testFile), SpoolConfig.getDefaultSpoolConfig()),
new SimpleChangedSizeHandler());
fch.commit();
fail("RecordAlreadyExistsException should be thrown, record exists");
}
catch (RecordAlreadyExistsException e)