/** Test for <a href="http://issues.apache.org/jira/browse/JAXME-65">JAXME-65</a>.
*/
public void testJAXME65() throws Exception {
final String xml1 =
"<jaxme65 xmlns='http://ws.apache.org/jaxme/test/jira/jaxme65'>some text<problem>here it is</problem>more text</jaxme65>";
Jaxme65 text1 = (Jaxme65) getJAXBContext(Jaxme65.class).createUnmarshaller().unmarshal(new InputSource(new StringReader(xml1)));
List list1 = text1.getContent();
assertEquals(3, list1.size());
assertEquals("some text", list1.get(0));
Object o = list1.get(1);
assertTrue(o instanceof Jaxme65Type.Problem);
Jaxme65Type.Problem problem = (Jaxme65Type.Problem) o;
assertEquals("here it is", problem.getValue());
assertEquals("more text", list1.get(2));
final String xml2 =
"<jaxme65 xmlns='http://ws.apache.org/jaxme/test/jira/jaxme65'>some text</jaxme65>";
Jaxme65 text2 = (Jaxme65) getJAXBContext(Jaxme65.class).createUnmarshaller().unmarshal(new InputSource(new StringReader(xml2)));
List list2 = text2.getContent();
assertEquals(1, list2.size());
assertEquals("some text", list2.get(0));
}