String body = exchange.getOut().getBody(String.class);
assertTrue(body.endsWith("<goodbye>world!</goodbye>"));
// now done the exchange
List<Synchronization> onCompletions = exchange.handoverCompletions();
UnitOfWorkHelper.doneSynchronizations(exchange, onCompletions, log);
// the file should be deleted
assertFalse("Output file should be deleted", file.exists());
}