assert getBeans(LoggerConsumer.class).size() == 1;
Bean<LoggerConsumer> bean = getBeans(LoggerConsumer.class).iterator().next();
InjectionPoint loggerInjectionPoint = null;
for (InjectionPoint ip : bean.getInjectionPoints()) {
if (ip.getAnnotated().getTypeClosure().contains(Logger.class) && ip.getQualifiers().size() == 1
&& ip.getQualifiers().contains(new DefaultLiteral())) {
loggerInjectionPoint = ip;
}
}
// Now lookup an injectable reference and check that it is of type Logger