@@ -0,0 +1,980 @@
+package com.orientechnologies.orient.core.db.record;%0A%0Aimport static org.junit.Assert.assertEquals;%0Aimport static org.junit.Assert.assertNotEquals;%0A%0Aimport com.orientechnologies.orient.core.db.ODatabaseSession;%0Aimport com.orientechnologies.orient.core.db.OrientDB;%0Aimport com.orientechnologies.orient.core.db.OrientDBConfig;%0Aimport com.orientechnologies.orient.core.record.impl.ORecordBytes;%0Aimport org.junit.Test;%0A%0Apublic class RecordSizeRecordingTest %7B%0A%0A  @Test%0A  public void testRecordSize() %7B%0A    try (OrientDB orientDB = new OrientDB(%22embedded:%22, OrientDBConfig.defaultConfig())) %7B%0A      orientDB.execute(%0A          %22create database test memory users (admin identified by 'admin' role admin)%22);%0A%0A      try (ODatabaseSession session = orientDB.open(%22test%22, %22admin%22, %22admin%22)) %7B%0A        long size = session.getSize();%0A        assertNotEquals(0, size);%0A        session.save(new ORecordBytes(new byte%5B10%5D));%0A        assertEquals(session.getSize(), size + 10);%0A      %7D%0A    %7D%0A  %7D%0A%7D%0A

add test for record size tracking, issue #9870