catch (NoSuchBeanDefinitionException e) {
}
ClassPathXmlApplicationContext child = new ClassPathXmlApplicationContext(
new String[] { "childcontainer/child-context.xml" }, parent);
Child childBean = (Child) child.getBean("child");
// show that we've overridden the child
Parent gotParent = childBean.tryGetParent();
assertSame(parentBean, gotParent);
}