General Procedure For Testing Hypothesis