public class JaxbFallbackTypeConverterTest extends CamelTestSupport {
@Test
public void testJaxbFallbackTypeConverter() {
Bar bar = new Bar();
bar.setName("camel");
bar.setValue("cool");
String result = template.requestBody("direct:start", bar, String.class);
assertNotNull(result);
assertTrue("Get a wrong xml string", result.indexOf("<bar name=\"camel\" value=\"cool\"/>") > 0);
assertTrue("The pretty print setting is not working", result.indexOf("><bar") > 0);
}