template.sendBodyAndHeader("file://target/fpc", "Hello World", Exchange.FILE_NAME, "hello.txt");
Endpoint endpoint = context.getEndpoint("file://target/fpc?fileName=hello.txt");
PollingConsumer consumer = endpoint.createPollingConsumer();
consumer.start();
Exchange exchange = consumer.receive(5000);
assertNotNull(exchange);
assertEquals("hello.txt", exchange.getIn().getHeader(Exchange.FILE_NAME, String.class));
assertEquals("Hello World", exchange.getIn().getBody(String.class));