}
};
DefaultInjector injector = new DefaultInjector(module);
MockInterface1 defaultObject = injector.getInstance(MockInterface1.class);
assertNotNull(defaultObject);
assertEquals("MyName", defaultObject.getName());
MockInterface1 abcObject = injector.getInstance(Key.get(
MockInterface1.class,
"abc"));
assertNotNull(abcObject);
assertEquals("alt", abcObject.getName());
MockInterface1 xyzObject = injector.getInstance(Key.get(
MockInterface1.class,
"xyz"));
assertNotNull(xyzObject);
assertEquals("alt2", xyzObject.getName());
}