@Test public void getDefaultBeanManagerDefault(@Mocked final DefaultBeanManagerProvider fallback) throws Exception { new MockUp<CdiUtil>() { @Mock @SuppressWarnings("UnusedDeclaration") <T> T lookupService(final Class<T> clazz) { return null; } }; CdiUtil.getBeanManager(); new Verifications() {{ fallback.getBeanManager(); times = 1; }}; }
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);  }