A Method for Testing Numerical Integrations of Equations of Motion of Mechanical Systems