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