### Question:
PropertyRecordFormat extends BaseOneByteHeaderRecordFormat<PropertyRecord> { @Override public void read( PropertyRecord record, PageCursor cursor, RecordLoad mode, int recordSize ) { int offset = cursor.getOffset(); byte headerByte = cursor.getByte(); boolean inUse = isInUse( headerByte ); boolean useFixedReferences = has( headerByte, HEADER_BIT_FIXED_REFERENCE ); if ( mode.shouldLoad( inUse ) ) { int blockCount = headerByte >>> 4; long recordId = record.getId(); if ( useFixedReferences ) { readFixedReferencesRecord( record, cursor ); } else { record.initialize( inUse, toAbsolute( Reference.decode( cursor ), recordId ), toAbsolute( Reference.decode( cursor ), recordId ) ); } record.setUseFixedReferences( useFixedReferences ); if ( (blockCount > record.getBlockCapacity()) | (RECORD_SIZE - (cursor.getOffset() - offset) < blockCount * Long.BYTES) ) { cursor.setCursorException( "PropertyRecord claims to contain more blocks than can fit in a record" ); return; } while ( blockCount-- > 0 ) { record.addLoadedBlock( cursor.getLong() ); } } } protected  PropertyRecordFormat(); @Override PropertyRecord newRecord(); @Override void read( PropertyRecord record, PageCursor cursor, RecordLoad mode, int recordSize ); @Override void write( PropertyRecord record, PageCursor cursor, int recordSize ); @Override long getNextRecordReference( PropertyRecord record );  }### Answer:
@Test public void readSingleUnitRecordStoredNotInFixedReferenceFormat() { PropertyRecord oldFormatRecord = new PropertyRecord( 1 ); PropertyRecord newFormatRecord = new PropertyRecord( 1 ); oldFormatRecord.initialize( true, randomFixedReference(), randomFixedReference() ); writeRecordWithOldFormat( oldFormatRecord ); assertFalse( "This should be single unit record.", oldFormatRecord.hasSecondaryUnitId() ); assertFalse( "Old format is not aware about fixed references.", oldFormatRecord.isUseFixedReferences() ); recordFormat.read( newFormatRecord, pageCursor, RecordLoad.NORMAL, PropertyRecordFormat.RECORD_SIZE ); verifySameReferences( oldFormatRecord, newFormatRecord ); }