"pico.registerComponentImplementation(DefaultWebServerConfig)\n" +
"child = pico.makeChildContainer()\n" +
"child.registerComponentImplementation(WebServerImpl)\n" +
"pico.registerComponentInstance('wayOfPassingSomethingToTestEnv', child.getComponentInstance(WebServerImpl))");
PicoContainer pico = buildContainer(new JythonContainerBuilder(script, getClass().getClassLoader()), null, "SOME_SCOPE");
WebServerImpl wsi = (WebServerImpl) pico.getComponentInstance("wayOfPassingSomethingToTestEnv");
assertNotNull(wsi);
}