public void setUp() throws Exception {
startServer();
defaultConf = new Configuration();
localFs = FileSystem.getLocal(defaultConf);
ftpServerConfig = new Path(localFs.getWorkingDirectory(), "res");
MinaListener listener = (MinaListener) server.getServerContext()
.getListener("default");
int serverPort = listener.getPort();
ftpFs = FileSystem.get(URI.create("ftp://admin:admin@localhost:"
+ serverPort), defaultConf);
}