java.lang.AssertionError: null in resolveEntityInstance1

Yes, there is FK from account table to bank_branch table (id).
I do not think that there might be something deleted from DB at the time (there are async processes running).

Maybe you could tell me what other prints I could insert into Hibernate’s code?
Iw as trying to gather more data but do not have much knowledge about the objects there.

So as I am compiling my own version of hibernate with system.out added, maybe we can print some more info?
I can also print info for when data is added (earlier stages) etc. and later we could correlate the logs (with entity ids and knowing that they belng to single test). So maybe we can catch the exact moment which causes the assumption of using the same initializer false.