@Test public void getBeanManagerCustom(@Mocked final TestBeanManagerProvider custom, @Mocked final DefaultBeanManagerProvider fallback) throws Exception { CdiUtil.getBeanManager(); new Verifications() {{ custom.getBeanManager(); times = 1; fallback.getBeanManager(); times = 0; }}; }
public static BeanManager getBeanManager() { final BeanManagerProvider provider = lookupService(BeanManagerProvider.class); if (provider != null) { return provider.getBeanManager(); } return BEAN_MANAGER_PROVIDER.getBeanManager(); }
CdiUtil { public static BeanManager getBeanManager() { final BeanManagerProvider provider = lookupService(BeanManagerProvider.class); if (provider != null) { return provider.getBeanManager(); } return BEAN_MANAGER_PROVIDER.getBeanManager(); } }
CdiUtil { public static BeanManager getBeanManager() { final BeanManagerProvider provider = lookupService(BeanManagerProvider.class); if (provider != null) { return provider.getBeanManager(); } return BEAN_MANAGER_PROVIDER.getBeanManager(); } private  CdiUtil(); }
CdiUtil { public static BeanManager getBeanManager() { final BeanManagerProvider provider = lookupService(BeanManagerProvider.class); if (provider != null) { return provider.getBeanManager(); } return BEAN_MANAGER_PROVIDER.getBeanManager(); } private  CdiUtil(); static Annotation[] getQualifiers(final Annotation[] annotations); static BeanManager getBeanManager(); static Class<? extends Annotation> getBeanScope(final Class<?> beanClass, final BeanManager beanManager); }
CdiUtil { public static BeanManager getBeanManager() { final BeanManagerProvider provider = lookupService(BeanManagerProvider.class); if (provider != null) { return provider.getBeanManager(); } return BEAN_MANAGER_PROVIDER.getBeanManager(); } private  CdiUtil(); static Annotation[] getQualifiers(final Annotation[] annotations); static BeanManager getBeanManager(); static Class<? extends Annotation> getBeanScope(final Class<?> beanClass, final BeanManager beanManager);  }