ContextElement { public EntityId getEntityId() { return entityId; } ContextElement(); EntityId getEntityId(); void setEntityId(EntityId entityId); List<ContextAttribute> getContextAttributeList(); void setContextAttributeList(List<ContextAttribute> contextAttributeList); @Override String toString();  }
@Test public void deserializationXMLMoreSimpleContextElement() throws IOException { String xml = "<contextElement>\n" + " <entityId type=\"T1\" isPattern=\"false\">\n" + " <id>E1</id>\n" + " </entityId>\n" + " </contextElement>"; ContextElement contextElement2 = xmlmapper.readValue(xml, ContextElement.class); assertEquals("E1", contextElement2.getEntityId().getId()); }