I cannot find anywhere answer to this question. Let's take exponential distribution i.e.
$$f(x) = \lambda e^{-\lambda x}\mathbb{1}_{(0, +\infty)}(x)$$
I want to derive uniformly most powerful test for hypothesis: $H_0:\lambda\ge\lambda_0$ and $H_1:\lambda<\lambda_0$.
How I would start with this problem is to take two $\lambda_1 \ge\lambda_0$ and $\lambda_2 < \lambda_0$ and then start to write:
$$\frac{L(x, \lambda_2)}{L(x, \lambda_1)} = \frac{\lambda_2^ne^{-\lambda_2(\sum_{i=1}^nx_i)}}{\lambda_1^ne^{-\lambda_1(\sum_{i=1}^nx_i)}}$$
Did I start to write correct likelihood proportion for my problem?
the system to be verified is the following
$$\begin{cases} H_0: \theta \ge \theta_0 \\ H_1: \theta < \theta_0 \end{cases} $$
now what we have to do first, is to check if our model has a monotonic likelihood ratio. To do that, lets set aribtrarily
$$\theta_1<\theta_2$$
and write down LR (note that here LR is not the generalized likelihood ratio but it is only the ratio of two likelihood functions)
$$LR=\frac{\theta_1^n e^{-\theta_1\Sigma_i x_i}}{\theta_2^n e^{-\theta_2\Sigma_i x_i}}=\left( \frac{\theta_2}{\theta_1}\right)^n e^{(\theta_2-\theta_1)\Sigma_i x_i}$$
which is clearly an increasing funciont in $Y=\Sigma_i x_i$
Now let's apply the following theorem, part (i), taken from Mood Graybill Boes
Using this theorem, the critical region is
$$\mathbb{P}[Y>k|\theta_0]=\alpha$$
Example
Let's verify the following system
$$\begin{cases} H_0: \theta \ge 1\\ H_1: \theta < 1 \end{cases} $$
Using the following random sample $\mathbf{x}=\{2.1;3.4;2.7\}$ and a significance level $\alpha=5\%$
Solution
First, remind that this system is equivalent to
$$\begin{cases} H_0: \theta = 1\\ H_1: \theta < 1 \end{cases} $$
Our critical region is
$$\mathbb{P}[Y>k|\theta=1]=0.05$$
now observe that, under $H_0$, $Y=\Sigma_i x_i \sim\text{Gamma}[3;1]$ that is $2Y\sim \chi_{(6)}^2$ thus the critical value, read in a chi square table with 6 d.o.f., is $k=12.6$. Being in our observations $2Y=16.4$ we reject $H_0$ in favour of the alternative hypothesis that the mean is greater than 1