Goodness of fit tests indicate whether or not it is reasonable to assume that a random sample comes from a specific distribution.
"They are a form of hypothesis testing where the null and alternative hypotheses are:
H0: Sample data come from the stated distribution
HA: Sample data do not come from the stated distribution
These tests are sometimes called *omnibus tests."
Reference:
Ricci, V. (2005). Fitting distributions with R. page 16.
Tag Usage
Questions on goodness-of-fit should be about implementation and programming problems, not about the statistical or theoretical properties of the technique.
Consider whether your question might be better suited to Cross Validated, the StackExchange site for statistics, machine learning and data analysis.