Configuration conf = new Configuration();
cluster = new MiniDFSCluster(65314, conf, 2, false);
namenode = conf.get("fs.default.name", "local");
if (!"local".equals(namenode)) {
MyFile[] files = createFiles(namenode, "/srcdat");
new CopyFiles().doMain(conf, new String[] {"hdfs://"+namenode+"/srcdat",
"hdfs://"+namenode+"/destdat"});
assertTrue("Source and destination directories do not match.",
checkFiles(namenode, "/destdat", files));
deldir(namenode, "/destdat");
deldir(namenode, "/srcdat");