The main problem is that OOME might happen in any Thread causing test failure.
The reference tests provoke OOME only to force reference clearing.
The possible fix is to force it directly with force GC.
The reference tests provoke OOME only to force reference clearing.
The possible fix is to force it directly with force GC.