*/
public class TestRegistryShutdownListenerServices extends FrameworkTestCase
{
private void executeShutdownListenerTest(String serviceModel, boolean manual) throws Exception
{
Registry registry = createRegistryWithSimpleService(serviceModel, manual);
Simple simple = (Simple) registry.getService("hivemind.lib.test.Simple", Simple.class);
final Counter counter = new Counter();
simple.setCounter(counter);
registry.shutdown();
assertEquals(1, counter.getValue());
}