public void testMultipleRefence() throws Exception
{
log.info("testMultipleReference() ...");
cache.putObject("/person/joe", createPerson("Joe Black", 31));
Person joe = (Person) cache.getObject("/person/joe");
cache.putObject("/person/ben", createPerson("Ben Hogan", 51));
Person ben = (Person) cache.getObject("/person/ben");
Address addr = new Address();
addr.setStreet("123 Albert Ave.");
addr.setCity("Sunnyvale");
addr.setZip(94087);
// They share the sub-object: address
log.info("testMultipleReference(): set Joe address");
joe.setAddress(addr);
log.info("testMultipleReference(): set Ben address");
ben.setAddress(addr);
log.info("testMultipleReference(): verify");
Address add1 = (Address) ((Person)cache.getObject("/person/joe")).getAddress();
Address add2 = (Address) ((Person)cache.getObject("/person/ben")).getAddress();
assertEquals(add1.getCity(), add2.getCity());