Thanks Paul! Yes, that does help. I see Ádám created this PR
<https://github.com/apache/fineract/pull/4975>. I tried that fix locally
and it worked! I also tried your suggestion here
<https://github.com/apache/fineract/commits/auto-close-static-mocks> and
that also works (ignore the test aggregation gradle code in the 1st two WIP
commits, that's just a patch I use to see all test results in one
report) (compare
my branch with develop
<https://github.com/apache/fineract/compare/develop...auto-close-static-mocks>).
I'm not sure which approach is better. I'm naive but I think I prefer
try-with-resources
<https://github.com/apache/fineract/pull/4975#issuecomment-3215103263>.