ContainedComponent contained = new ContainedComponent();
contained.setBinding("barney", bspec);
contained.setType("FredComponent");
IComponentSpecification spec = new ComponentSpecification();
spec.addParameter(pspec);
trainGetSpecification(component, spec);
log
.warn("Parameter barney (for component FredComponent, at classpath:/org/apache/tapestry/pageload/PageLoaderTest, line 1) was bound; this parameter has been deprecated, bind parameter fred instead.");