"nano = builder.container {\n" +
" component(class:A)\n" +
" component(key:B, class:B, parameters:[ new ComponentParameter(A) ])\n" +
"}");
PicoContainer pico = buildContainer(script, null, ASSEMBLY_SCOPE);
A a = (A) pico.getComponentInstance(A.class);
B b = (B) pico.getComponentInstance(B.class);
assertNotNull(a);
assertNotNull(b);
assertSame(a, b.a);
}