If water can't expand, will it still freeze?

For one thing, you could spin it. A container with a solid interior will spin more easily than one with a liquid interior. This also works for telling if an egg is hard-boiled.