the distribution of the test statistic under $H_0$. If the observed difference is in the tails of this distribution, that's evidence against $H_0$.