public void testMarshalAndUnmarshalAgeView() throws Exception {
TestPojoView in = new TestPojoView();
MockEndpoint mock = getMockEndpoint("mock:reverseAgeView");
mock.expectedMessageCount(1);
mock.message(0).body().isInstanceOf(TestPojoView.class);
mock.message(0).body().equals(in);
Object marshalled = template.requestBody("direct:inAgeView", in);
String marshalledAsString = context.getTypeConverter().convertTo(String.class, marshalled);
assertEquals("{\"age\":30,\"height\":190}", marshalledAsString);