@EndpointInject(uri = "mock:result")
protected MockEndpoint result;
public void testMocksAreValid() throws Exception {
// lets check that our injected endpoint is valid
FileEndpoint fileEndpoint = Assertions.assertInstanceOf(inputFile, FileEndpoint.class);
assertEquals("File", new File("target/test-default-inbox"), fileEndpoint.getFile());
result.expectedBodiesReceived(expectedBody);
result.setResultWaitTime(5000);
template.sendBodyAndHeader(inputFile, expectedBody, Exchange.FILE_NAME, "hello.txt");