Electron cooling of the ion beam is key to obtaining the required high luminosity of proposed electron-ion colliders. For the Jefferson Lab Electron Ion Collider, the expected luminosity of 10³⁴ 〖 cm〗⁻² s⁻¹ will be achieved through so-called ’magnetized electron cooling’, where the cooling process occurs inside a solenoid field, which will be part of the collider ring and facilitated using a circulator ring and Energy Recovery Linac (ERL). As an initial step, we generated magnetized electron beam using a new compact DC high voltage photogun biased at -300 kV employing an alkali-antimonide photocathode. This contribution presents the characterization of the magnetized electron beam (emittance variations with the magnetic field strength for different laser spot sizes) and a comparison to GPT simulations