Magnetic field and plasma diagnostics for solar coronal mass ejections: A case study using the forward modeling approach