Beam-tests of CMS High Granularity Calorimeter prototypes at CERN