public void testHeaderFileNameProduced() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:result");
mock.expectedMessageCount(1);
// the absolute path to the file written should contain the target folder
mock.message(0).header(FileComponent.HEADER_FILE_NAME_PRODUCED).contains("target");
template.requestBodyAndHeader("direct:in", "Hello World", FileComponent.HEADER_FILE_NAME,
"FileHeaderFileNameProducedTest.txt");
mock.assertIsSatisfied();