### Question:
DaggerComponentProviderFactory implements IoCComponentProviderFactory { @Override public IoCComponentProvider getComponentProvider(Class<?> clazz) { return getComponentProvider(null, clazz); } DaggerComponentProviderFactory(ResourceConfig config, ObjectGraph objectGraph, Object[] modules); @Override IoCComponentProvider getComponentProvider(Class<?> clazz); @Override IoCComponentProvider getComponentProvider(ComponentContext componentContext, Class<?> clazz);  }### Answer:
@Test public void testClassesFromProvidesMethodsWithModuleInjectsAndNoInjectsConstructorAreRegistered() { ResourceConfig config = new DefaultResourceConfig(); ObjectGraph objectGraph = ObjectGraph.create(SomeInjectableProvidesModule.class, new SomeOtherInjectableProvidesModule()); IoCComponentProviderFactory factory = new DaggerComponentProviderFactory(config, objectGraph, new Object[]{SomeInjectableProvidesModule.class, new SomeOtherInjectableProvidesModule()}); assertTrue(config.getClasses().contains(SomeProvidesInjectableResource.class)); assertTrue(config.getClasses().contains(SomeOtherProvidesInjectableResource.class)); assertTrue(config.getClasses().contains(SomeProvidesInjectableProvider.class)); SomeProvidesInjectableResource someResource = (SomeProvidesInjectableResource) factory. getComponentProvider(SomeProvidesInjectableResource.class).getInstance(); SomeOtherProvidesInjectableResource someOtherResource = (SomeOtherProvidesInjectableResource) factory .getComponentProvider(SomeOtherProvidesInjectableResource.class).getInstance(); SomeProvidesInjectableProvider someProvider = (SomeProvidesInjectableProvider) factory .getComponentProvider(SomeProvidesInjectableProvider.class).getInstance(); assertNotNull(someResource); assertNotNull(someOtherResource); assertNotNull(someProvider); }