}
public void testFail() throws Exception {
MockEndpoint mock = getMockEndpoint("mock:result");
mock.expectedBodiesReceived("Hello World");
mock.expectedFileExists("target/file/hello.txt", "Hello World");
try {
template.sendBodyAndHeader("file://target/file?fileExist=Fail", "Bye World", Exchange.FILE_NAME, "hello.txt");
fail("Should have thrown a GenericFileOperationFailedException");
} catch (GenericFileOperationFailedException e) {