Simulating supersonic turbulence in magnetized molecular clouds