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