A test for the change-point problem based on the Cramer-von Mises statistic