Sampling of hypothesis testing