} catch (PetiteException ignore) {
}
pc.setBeanProperty("pojo.val1", "value");
pc.setBeanProperty("pojo.bean.name", "foo");
PojoBean2 pojo2 = (PojoBean2) pc.getBean("pojo");
assertEquals("value", pojo2.getVal1());
assertEquals("foo", pojo2.getBean().getName());
pc.registerPetiteBean(PojoBean2.class, "pojo.bean", null, null, false);
pc.setBeanProperty("pojo.bean.val1", "value");
pc.setBeanProperty("pojo.bean.val2", "173");
pojo2 = (PojoBean2) pc.getBean("pojo.bean");
assertEquals("value", pojo2.getVal1());
assertEquals(173, pojo2.getVal2().intValue());
}