LoggerProducer { @Produces @Default public Logger createLogger(final InjectionPoint ip) { Class declaringClass = ip.getMember().getDeclaringClass(); return Logger.getLogger(declaringClass.getName()); }  @Produces @Default Logger createLogger(final InjectionPoint ip);  }
@Test public void createLogger() throws Exception { assertThat(logger, is(notNullValue())); logger.info("Logger injection worked."); }