When I travel by train between Berlin and Breslau, it's more often than not that Polish border guards come on board to do random ID checks. Same thing on the train between Prague and Dresden with German authorities. It's been that way for a while it seems.