Github user franz1981 commented on the issue:
https://github.com/apache/activemq-artemis/pull/2347
You can take a weak reference of the ManagementContext instance you want to
test the leak, force a GC + run finalizer (we have a method in the test suite
for that) and then verify that the instance is being GCed..TBH it doesn't worth
the effort ^^---
