The method for finding a Bayesian test depends on the posterior of the parameter and a function of the data. Using the posterior probabilities of the null parameter space and the alternative parameter space, the Bayesian test selects the hypothesis with the more likely parameter space.