* Test replication with classloaders.
* @throws Exception
*/
public void testCLLeakageBasic() throws Exception
{
SerializedAddress add = new SerializedAddress();
add.setCity("Taipei");
ClassLoader cla = getClassLoader();
WeakReference refa = new WeakReference(cla);
cache_.registerClassLoader("/aop", cla);
ClassLoader clb = getClassLoader();
WeakReference refb = new WeakReference(clb);
cache1_.registerClassLoader("/aop", clb);
cache_.put("/aop", "add", add);
TestingUtil.sleepThread(100);
try
{
Object ben = cache1_.get("/aop", "add");
assertEquals(add.toString(), ben.toString());
ben = null;
} catch (Exception ex)
{
fail("Test fails with exception " +ex);
}