This is not a hypothesis testing problem.
Let $Z$ be discrete non-negative random variable, such that it picks either the value of random variable $X$ with probability $p$ or the random variable $Y$ with probability $q$. The pdfs of both $X$ and $Y$ are known, is there a way to caculate the pdf of $Z$.
For instance: $$ X \: \sim Poisson(\lambda_0), \\ Y \: \sim Poisson(\lambda_1), \\ Z = \begin{cases} X &\mbox{with probability } p \\ Y &\mbox{with probability } q . \end{cases} \\ f(Z)= ?$$