ff2.upload(f2);
Thread.sleep(1000); // wait for the index
List<? extends Resource> children1 = ff1.children();
List<? extends Resource> children2 = ff2.children();
assertEquals(1,children1.size());
assertEquals(1,children2.size());
File r1 = (File)children1.get(0);
File r2 = (File)children2.get(0);