" </component-implementation>" +
" <component-implementation key='org.nanocontainer.testmodel.WebServer' class='org.nanocontainer.testmodel.WebServerImpl'/>" +
"</container>");
PicoContainer pico = buildContainer(script);
assertNotNull(pico.getComponentInstance(WebServerConfigComp.class));
WebServerConfigComp config = (WebServerConfigComp) pico.getComponentInstanceOfType(WebServerConfigComp.class);
assertEquals("localhost", config.getHost());
assertEquals(8080, config.getPort());
}