Testing Sunyaev–Zel'dovich measurements of the hot gas content of dark matter haloes using synthetic skies | Synapse