private int getBlobPropertiesV2RecordSize(BlobProperties properties) {
    int size = Version_Field_Size_In_Bytes + Long.BYTES + Byte.BYTES + Long.BYTES + Long.BYTES + Integer.BYTES
        + Utils.getNullableStringLength(properties.getContentType()) + Integer.BYTES + Utils.getNullableStringLength(
        properties.getOwnerId()) + Integer.BYTES + Utils.getNullableStringLength(properties.getServiceId())
        + Short.BYTES + Short.BYTES;
    return Version_Field_Size_In_Bytes + size + Crc_Size;
  }
Returns {@link BlobProperties} record size in version {@link BlobPropertiesSerDe#VERSION_2}
@param properties {@link BlobProperties} for which size is requested
@return the size of the {@link BlobPropertiesSerDe} in version {@link BlobPropertiesSerDe#VERSION_2}
ambry-messageformat/src/test/java/com/github/ambry/messageformat/MessageFormatRecordTest.java