fakeFtpServer = new FakeFtpServer();
fakeFtpServer.setServerControlPort(9879);
fakeFtpServer.addUserAccount(new UserAccount("admin", "123456", "/"));
FileSystem fileSystem = new UnixFakeFileSystem();
fileSystem.add(new DirectoryEntry("/data/prancingdonkey/catalog"));
fakeFtpServer.setFileSystem(fileSystem);
fakeFtpServer.start();
DataSource dataSource = muleContext.getRegistry().lookupObject("dataSource");
template = new JdbcTemplate(dataSource);