brooklyncentral/brooklyn — pull request #848 by pveentjer (2013-07-24 13:29:53+00:00)
Title: Managementcontextcleanupintest

Cleans o the LocalManagementContext.

It is done in the same style as done in Hazelcast with tracking HazelcastInstances. They are stored in a static field containing a collections. And there is a terminateAll method which iterates over this collection and terminates them. This is very useful for testing because you don't need to track LocalManagementContext explicitly because it will be done behind the scenes for you.