TestWithGbeOne testOne = TestWithGbeOne.createInstance();
assertNull(
getTestScopeForGbe(
Class.forName(GuiceBerryEnvOne.GUICE_BERRY_ENV_ONE)));
guiceBerryJunit3.doSetUp(testOne);
TestScope testScopeOne =
getTestScopeForGbe(
Class.forName(GuiceBerryEnvOne.GUICE_BERRY_ENV_ONE));
assertNotNull(testScopeOne);
testOne.run();
AnotherTestWithGbeOne testTwo =
AnotherTestWithGbeOne.createInstance();
guiceBerryJunit3.doSetUp(testTwo);
assertNotNull(getTestScopeForGbe(
Class.forName(GuiceBerryEnvOne.GUICE_BERRY_ENV_ONE)));
TestScope testScopeTwo =
getTestScopeForGbe(
Class.forName(GuiceBerryEnvOne.GUICE_BERRY_ENV_ONE));
assertSame(testScopeOne, testScopeTwo);
assertEquals(1, currentUniverse.gbeClassToInjectorMap.size());
}