* Adds node and checks if content size was increased on correct value.
* Single-value properties only.
*/
public void testAddSingleValueProps() throws Exception
{
TesterItemsPersistenceListener pListener = new TesterItemsPersistenceListener(session);
Node node1 = testRoot.addNode("node1");
node1.setProperty("prop1", "value");
node1.setProperty("prop2", true);
node1.setProperty("prop4", Calendar.getInstance());
node1.setProperty("prop5", new FileInputStream(createBLOBTempFile(1000)));
testRoot.addNode("node2").addNode("node3");
testRoot.save();
List<TransactionChangesLog> logs = pListener.pushChanges();
long expectedDelta = wsQuotaManager.getNodeDataSizeDirectly(testRoot.getPath()) - testRootSize;
long measuredDelta = calcChangedSize(logs, testRoot.getPath());
assertEquals(expectedDelta, measuredDelta);