public void testBindConstantWithMultipleAnnotationsAddsError() {
checkModule(
new AbstractModule() {
protected void configure() {
AnnotatedConstantBindingBuilder cbb = bindConstant();
cbb.annotatedWith(SampleAnnotation.class).to("A");
cbb.annotatedWith(Names.named("A"));
}
},
new FailingElementVisitor() {
@Override public <T> Void visit(Binding<T> command) {