* Test Case Submitted by Peter Monks 1/2007
*/
@Test
public void testInterfaceInheritanceViaXmlBeans_PojoToXmlBean() {
mapper = getMapper(new String[] { "xmlBeansMapping.xml" });
Child pojo = (Child) newInstance(Child.class);
pojo.setId(BigInteger.valueOf(42));
pojo.setName("Ernie");
pojo.setFu("Fu");
pojo.setBar("Bar");
ChildType xmlBean = mapper.map(pojo, ChildType.class);
assertNotNull("dest obj should not be null", xmlBean);
assertNotNull("fu value should not be null", xmlBean.getFu());
assertEquals("invalid fu value", pojo.getFu(), xmlBean.getFu());
assertNotNull("bar field should not be null", xmlBean.getBar());
assertEquals("invalid bar value", pojo.getBar(), xmlBean.getBar());
assertNotNull("name value should not be null", xmlBean.getName());
assertEquals("invalid name value", pojo.getName(), xmlBean.getName());
assertNotNull("id field should not be null", xmlBean.getId());
assertEquals("invalid id value", pojo.getId(), xmlBean.getId());
}