}
public void test04ModifyOperations() throws MapperConfigurationException,
XMLConfiguratorException {
XMLConfigurator xc = new XMLConfigurator();
xc.parse(Thread.currentThread().getContextClassLoader()
.getResourceAsStream("jndi-sample-modify.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("addEmpToBoss"), ANYTHING);
mockconfigure.expects(once()).method("addMapper").with(
eq("delEmpFromBoss"), ANYTHING);
mockconfigure.expects(once()).method("addMapper").with(
eq("changeBossOfEmp"), ANYTHING);
mockconfigure.expects(once()).method("link").with(eq("addEmpToBoss"),
eq("ldifsource"));
mockconfigure.expects(once()).method("link").with(eq("delEmpFromBoss"),
eq("ldifsource"));
mockconfigure.expects(once()).method("link").with(
eq("changeBossOfEmp"), eq("ldifsource"));
// configure
xc.configure((Configure) mockconfigure.proxy());
}