I think that's because the bytecode is not getting enhanced in Intellij, something like this: HHH-11054 Open . Without the enhancement, the property is not lazy, so the test passes.