I've seen that done at one of either Innsbruck or Saltzberg only a couple of years ago
If if would not switch/the battery was flat it was confiscated and would be returned to you later presumably with a bill to pay prior.
The checking was random rather than 100%.