Characterization of a prototype for the electromagnetic calorimeter of the Mu2e experiment