The Advanced Space-based Solar Observatory is scheduled to be launched in fall of 2022. The ASO-S carries three payloads to fulfill its science objects. As a key instrument onboard, the Hard X-ray Imager aims at observing solar flares after launch. HXI adopts spatial modulation technique using 91 pairs sub-collimator as Fourier units. However, it is quite hard to calibrate modulating parameters on ground through lack of parallel X-rays in lab. This paper introduces design, fabrication as well as integration of X-ray Modulation Characterization System last year. Application of X-ray beam test was applied for HXI subsequently. Discussion on test results was presented in the end which indicated well performance in orbit.