@Test public void testObjectField() throws Exception { mapper = getMapper("knownFailures.xml"); Outer o = new Outer(); Target t = mapper.map(o, Target.class); assertEquals(((Inner) o.getInner()).getString(), t.getString()); }