After commenting out expected = IdentifierGenerationException.class from the test case, and using 5.3.7-SNAPSHOT, the test passes.
It looks like this has already been fixed.