DependencyRequestMapper { abstract Class<?> getFrameworkClass(DependencyRequest request);    }
@Test public void forProvider() { DependencyRequestMapper mapper = DependencyRequestMapper.FOR_PROVIDER; assertThat(mapper.getFrameworkClass(dependencyRequestForInstance())) .isEqualTo(Provider.class); assertThat(mapper.getFrameworkClass(dependencyRequestForLazy())) .isEqualTo(Provider.class); assertThat(mapper.getFrameworkClass(dependencyRequestForProvider())) .isEqualTo(Provider.class); assertThat(mapper.getFrameworkClass(dependencyRequestForMembersInjector())) .isEqualTo(MembersInjector.class); }
@Test public void forProducer() { DependencyRequestMapper mapper = DependencyRequestMapper.FOR_PRODUCER; assertThat(mapper.getFrameworkClass(dependencyRequestForInstance())) .isEqualTo(Producer.class); assertThat(mapper.getFrameworkClass(dependencyRequestForLazy())) .isEqualTo(Provider.class); assertThat(mapper.getFrameworkClass(dependencyRequestForProvider())) .isEqualTo(Provider.class); assertThat(mapper.getFrameworkClass(dependencyRequestForMembersInjector())) .isEqualTo(MembersInjector.class); assertThat(mapper.getFrameworkClass(dependencyRequestForProducer())) .isEqualTo(Producer.class); assertThat(mapper.getFrameworkClass(dependencyRequestForProduced())) .isEqualTo(Producer.class); }