MediaType.APPLICATION_XML), null);
assertTrue(rep instanceof JaxbRepresentation<?>);
}
public void testRepresentationToObject() throws IOException, JAXBException {
ConverterService cs = new ConverterService();
JaxbRepresentation<Sample> sampleRep = new JaxbRepresentation<Sample>(
MediaType.APPLICATION_XML, new Sample());
Object rep = cs.toObject(sampleRep, Sample.class, null);
assertTrue(rep instanceof Sample);
}