I was wondering if I could ask a question to the Stats Folk.
Consider a random variable $Y$ with a given $E[Y]$ and $V[Y]$ that is known.
Now consider that a set of sample data is collected $X$, it itself has it's own sample $E[X]$ and $V[X]$ and sample size $n$.
My question, is there a statistical test to determine whether $X$ is a true sample of $Y$? Or some sort of assessment of this?
We very often see analysis that allows for a sample to be analysed under the assumption it's from a certain population, but I've been unable to find any that test where $X \subseteq Y$.

If you know not only the mean and variance but also the true theoretical distribution of Y and the empirical distribution of X, you can apply Kolmogorov-Smirnov test. This test basically just tests how close are these two distributions to each other.