infinispan/infinispan — pull request #1316 by galderz (2012-09-18 11:03:06+00:00)
Title: ISPN-2290 Fix cache MBean leak when cache statistics disabled

https://issues.jboss.org/browse/ISPN-2290

* Make tests more resilient to failures.
* Make sure all cache managers are created via the factory.
* Use withCacheManager() where possible to provide better guarantees that cache manager will be closed properly.
* Added a test for the cache MBean registration leak.