One of the solutions to Maxwell's equations has the form of a wave equation, where the speed at which the waves propagate is $c$, where (in SI units) $c = \sqrt{1/(\varepsilon_0 \mu_0)}$, and $\varepsilon_0$ (permittivity of the vacuum) & $\mu_0$ (permeability of the vacuum) are constants in Maxwell's equations.
But, if Newtonian mechanics is correct (really: if Galilean relativity is correct), $c$ can not be a constant, as you can always choose a moving frame in which the speed of the waves will be less than, or more than, $c$.
This means one of two things:
- either Maxwell's equations are true only in some privileged frame of reference (I call this the 'rest frame' below);
- or Galilean relativity (and hence Newtonian mechanics) is not correct, and in particular is increasingly far from correct for frames moving at relative speeds $v$ near $c$ while being an increasingly good approximation when $v \ll c$ (this must be true because we know it makes very good predictions for frames like this).
Well, this is perfectly testable. First of all, the wave motions predicted by Maxwell's equations do exist in reality: they're electromagnetic waves, including light waves, radio waves &c.
So then the experiment you need to do is to measure the speed of these waves in frames which are moving relative to each other. In fact you can do this in a single frame by measuring the speed of the waves in the direction the frame is moving (relative to some other frame) and perpendicular to it. If Galilean relativity is correct, then the speeds will differ, and it will be possible to find the special 'rest frame' in which Maxwell's equations are correct. if Galilean relativity isn't correct then it won't be possible to find such a frame: Maxwell's equations will be correct in all (inertial) frames.
This was done, of course, by Michelson & Morley, where the 'moving' frame is the frame of the Earth, and we know the Earth's frame must be moving because the Earth moves around the Sun so even if the Sun's frame is not at rest in such a way that the Earth's frame is momentarily at rest, then the Earth's frame won't be at rest half-a-year later.
And the result of the experiment was, of course, that Maxwell's equations are correct in all inertial frames -- the speed of light is the same as measured from any inertial frame -- and so Galilean relativity must be incorrect, and if it is incorrect then Newtonian mechanics is also incorrect, since it is built on Galilean relativity.
(Note I have not mentioned many subtleties involved with doing the experiment and many proposed workarounds such as aether-dragging &c, all of which really got ruled out later. It's worth reading the history if you're interested.)