public class TestPooledServiceModel extends FrameworkTestCase
{
public void testUnmanaged() throws Exception
{
Registry r = buildFrameworkRegistry(new StringHolderModule(ServiceModel.POOLED));
StringHolder s =
(StringHolder) r.getService("hivemind.test.services.StringHolder", StringHolder.class);
assertNull(s.getValue());
s.setValue("funky monkey");
assertEquals("funky monkey", s.getValue());
ThreadEventNotifier n =
(ThreadEventNotifier) r.getService(
HiveMind.THREAD_EVENT_NOTIFIER_SERVICE,
ThreadEventNotifier.class);
n.fireThreadCleanup();