### Question:
CdiComponentProvider implements ComponentProvider, Extension { boolean isJaxRsComponentType(final Class<?> clazz) { return jaxRsComponentCache.apply(clazz); } CdiComponentProvider(); @Override void initialize(final InjectionManager injectionManager); @Override boolean bind(final Class<?> clazz, final Set<Class<?>> providerContracts); @Override void done(); void processAnnotatedType(//@Observes
    // We can not apply the following constraint
    // if we want to fully support {@link org.glassfish.jersey.ext.cdi1x.spi.Hk2CustomBoundTypesProvider}.
    // Covered by tests/integration/cdi-with-jersey-injection-custom-cfg-webapp test application:
//                                      @WithAnnotations({
//                                              Context.class,
//                                              ApplicationPath.class,
//                                              HeaderParam.class,
//                                              QueryParam.class,
//                                              FormParam.class,
//                                              MatrixParam.class,
//                                              BeanParam.class,
//                                              PathParam.class})
                                      final ProcessAnnotatedType processAnnotatedType); static final String CDI_CLASS_ANALYZER; }### Answer:
@Test public void testProviders() { final CdiComponentProvider provider = new CdiComponentProvider(); assertFalse(provider.isJaxRsComponentType(MyPojo.class)); assertTrue(provider.isJaxRsComponentType(MyMessageBodyReader.class)); assertTrue(provider.isJaxRsComponentType(MyOtherMessageBodyReader.class)); }
@Test public void testResources() { final CdiComponentProvider provider = new CdiComponentProvider(); assertTrue(provider.isJaxRsComponentType(LocatorSubResource.class)); assertTrue(provider.isJaxRsComponentType(ResourceMethodResource.class)); assertTrue(provider.isJaxRsComponentType(ResourceMethodSubResource.class)); assertTrue(provider.isJaxRsComponentType(CustomResourceMethodSubResource.class)); }