184185186187188189190191192193194
try { assertNotNull(beanFactoryLocator.useBeanFactory("cache-with-name")); beanFactoryLocator.useBeanFactory("no-bean-factory-locator"); } finally { beanFactoryLocator.destroy(); } } @Test public void testNamedClientCache() throws Exception {