String ftpUrl = "ftp://admin@localhost:" + port + "/incoming/data1/?password=admin&binary=true";
Endpoint endpoint = context.getEndpoint(ftpUrl);
Exchange exchange = endpoint.createExchange();
exchange.getIn().setBody(IOConverter.toFile("src/test/data/ftpbinarytest/logo1.jpeg"));
exchange.getIn().setHeader(FileComponent.HEADER_FILE_NAME, "logo1.jpeg");
Producer producer = endpoint.createProducer();
producer.start();
producer.process(exchange);
producer.stop();
ftpUrl = "ftp://admin@localhost:" + port + "/incoming/data2/?password=admin&binary=true";