You should call registry.shutdown() in @AfterClass and
registry.cleanupThread() in @After.

Reply via email to