"nano = builder.container {\n" +
" component(key:'byClass', class:HasParams, parameters:[ 'a', 'b', new ConstantParameter('c') ])\n" +
" component(key:'byClassString', class:'org.nanocontainer.script.groovy.HasParams', parameters:[ 'c', 'a', 't' ])\n" +
"}");
PicoContainer pico = buildContainer(script, null, ASSEMBLY_SCOPE);
HasParams byClass = (HasParams) pico.getComponentInstance("byClass");
assertEquals("abc", byClass.getParams());
HasParams byClassString = (HasParams) pico.getComponentInstance("byClassString");
assertEquals("cat", byClassString.getParams());
}