A unified Bayesian framework for interval hypothesis testing in clinical trials