@SuppressWarnings("unchecked")
public void testReadParamJAXBElement() throws Exception {
String xml = "<param xmlns=\"http://jaxbelement/10\">"
+ "<filter name=\"foo\"/><comment>a</comment></param>";
JAXBElementProvider provider = new JAXBElementProvider();
ParamJAXBElement jaxbElement = (ParamJAXBElement)provider.readFrom((Class)ParamJAXBElement.class,
ParamJAXBElement.class,
new Annotation[0], MediaType.TEXT_XML_TYPE, new MetadataMap<String, String>(),
new ByteArrayInputStream(xml.getBytes("UTF-8")));
ParamType param = (ParamType)jaxbElement.getValue();
assertEquals("a", param.getComment());
}