/**
* Unscoped bindings should not conflict, whether they were bound with no explicit scope, or
* explicitly bound in {@link Scopes#NO_SCOPE}.
*/
public void testDuplicateUnscopedBindings() {
Module m = new AbstractModule() {
@Override protected void configure() {
OptionalBinder<Integer> b = OptionalBinder.newOptionalBinder(binder(), Integer.class);
b.setDefault().to(Key.get(Integer.class, named("foo")));
b.setDefault().to(Key.get(Integer.class, named("foo"))).in(Scopes.NO_SCOPE);
b.setBinding().to(Key.get(Integer.class, named("foo")));