boolean calledDefault = false;
boolean calledCustom = false;
for (Element e : Elements.getElements(underTest)) {
if (e instanceof Binding) {
Key key = ((Binding) e).getKey();
if (Named.class.isAssignableFrom(key.getAnnotation().annotationType())
&& "configureInterceptors".equals(((Named) key.getAnnotation()).value())
&& key.getTypeLiteral().getRawType().equals(Object.class)) {
calledCustom = true;
}
if (Named.class.isAssignableFrom(key.getAnnotation().annotationType())
&& "configureDefaultInterceptors".equals(((Named) key.getAnnotation()).value())
&& key.getTypeLiteral().getRawType().equals(Object.class)) {
calledDefault = true;
}
}
}
}