public void testSeriazableAnnotation() throws Exception
{
log_.info("testSerializableAnnotation() ....");
Gadget ga = new Gadget();
ga.setName("Printer");
SpecialAddress addr = new SpecialAddress();
addr.setAddr("10.1.2.2");
ga.setAddr(addr);
cache_.putObject("/gadget", ga);
Object obj = cache_.getObject("/gadget");
assertEquals(ga, obj);
Gadget ga1 = (Gadget)cache1_.getObject("/gadget");
assertEquals("Name is ", ga.getName(), ga1.getName());
SpecialAddress addr1 = (SpecialAddress)ga1.getAddr();
addr1.setAddr("5152967326");
assertNotSame("Special address should not be updated: ", addr1.getAddr(), addr.getAddr());
ga1.setAddr(addr1);
assertEquals("Special address should be the same", ga.getAddr().getAddr(), ga1.getAddr().getAddr());
}