PicoContainer pico = buildContainer(new StringReader(script), parent, new SomeAssemblyScope());
assertNotNull(pico.getComponentInstanceOfType(B.class));
}
public void testBuildContainerWhenExpectedParentDependencyIsNotFound() {
DefaultNanoPicoContainer parent = new DefaultNanoPicoContainer();
Reader script = new StringReader("" +
"package org.nanocontainer.script.groovy\n" +
"nano = builder.container(parent:parent, scope:assemblyScope) {\n" +
" if ( assemblyScope instanceof SomeAssemblyScope ){\n "+