mockconfigure.expects(once()).method("link").with(eq("telAndMail"),
eq("ldifsource"));
mockconfigure.expects(once()).method("link").with(eq("emps"),
eq("ldifsource"));
// reset and reconfigure
xc.resetConfig();
xc.parse(Thread.currentThread().getContextClassLoader()
.getResourceAsStream("jndi-sample.xml"));
// configure
xc.configure((Configure) mockconfigure.proxy());
}