ScreenScoopFactory { public final Scoop createScreenScoop(Screen screen, Scoop parentScoop) { Scoop.Builder scoopBuilder = new Scoop.Builder(screen.getClass().getSimpleName(), parentScoop) .service(Screen.SERVICE_NAME, screen); return addServices(scoopBuilder, screen, parentScoop); }  final Scoop createScreenScoop(Screen screen, Scoop parentScoop);  }
@Test public void screenAddedToScoop() { ScreenScoopFactory screenScoopFactory = new ScreenScoopFactory(); Scoop parentScoop = new Scoop.Builder("root").build(); Screen screen = new TestScreen(); Scoop childScoop = screenScoopFactory.createScreenScoop(screen, parentScoop); Assert.assertEquals(screen, Screen.fromScoop(childScoop)); }