}
public void test16Bean()
throws MapperConfigurationException, XMLConfiguratorException {
XMLConfigurator xc = new XMLConfigurator();
xc.parse(Thread.currentThread().getContextClassLoader()
.getResourceAsStream("jndi-sample-bean.xml"));
// expects
mockconfigure.expects(once()).method("addParameter").with(
eq("ldifsource"), eq("canam.ldif"));
mockconfigure.expects(once()).method("addSource").with(
eq("ldifsource"), ANYTHING);
mockconfigure.expects(once()).method("addMapper").with(eq("addEmp"),
ANYTHING);
mockconfigure.expects(once()).method("addMapper").with(eq("delEmp"),
ANYTHING);
mockconfigure.expects(once()).method("link").with(eq("addEmp"),
eq("ldifsource"));
mockconfigure.expects(once()).method("link").with(eq("delEmp"),
eq("ldifsource"));
// configure
xc.configure((Configure) mockconfigure.proxy());
}