*/
public class HierarchicalTest extends GWTTestCase {
public void testHierarchicalInjector() {
HierarchicalMyAppGinjector injector = GWT.create(HierarchicalMyAppGinjector.class);
SimpleObject simple = injector.getSimple();
assertNotNull(simple);
SimpleObject unnamedSimple = injector.getUnnamedSimple();
assertNotNull(unnamedSimple);
assertSame(simple, unnamedSimple);
SimpleObject purple = injector.getSimplePurple();
assertNotNull(purple);
assertSame(simple, purple);
SimpleObject red = injector.getSimpleRed();
assertNotNull(red);
assertSame(purple, red);
SimpleObject blue = injector.getSimpleBlue();
assertNotNull(blue);
assertSame(blue, red);
}