How can it be tested that the egg is hard boiled or not?

A raw egg has larger moment of inertia, so it cannot be rotated easily but a hard boiled egg has less
moment of inertia. So it can be rotated easily.