If an initially mainly rectilinear electron beam is subject to significant magnetic compression, the conservation of the magnetic moment results in the ultimate formation of a horseshoe distribution in phase space. A similar situation occurs where particles are accelerated into the auroral region of the Earth's magnetic dipole. Such a distribution has been shown to be unstable to a cyclotron resonance maser type of instability and it has been postulated that this may be the mechanism required to explain the production in these regions of auroral kilometric radiation (AKR) and also possibly radiation from other astrophysical objects such as stars with a suitable magnetic field configuration. In this paper we describe a laboratory experiment to investigate the evolution of an electron beam subject to a magnetic compression of up to a factor of 30.