@Override protected void tearDown() throws Exception { try { appContext.getLifecycleManager().invokeHandler(Stoppable.class); } finally { super.tearDown(); } }
@Override protected void setUp() throws Exception { super.setUp(); cacheManagerComponent = lookup(CacheManagerComponent.class); appContext .getLifecycleManager() .registerManaged(new CacheManagerLifecycleHandler(cacheManagerComponent)); }