Testing a Bell-type inequality with a micromaser