### Question:
RemoteFSController extends AbstractController implements Initializable { void upload(Path source, BoxPath destination) { Upload upload = new ManualUpload(CREATE, volume, source, destination); transferManager.addUpload(upload); }  @Override void initialize(URL location, ResourceBundle resources); static final int OPTION_EDGE_SIZE; }### Answer:
@Test(timeout=10000L) public void testCalculateFileStructure() { try { nav.upload("File", file); nav.commit(); TreeItem rootNode = getRoot(); waitUntil(() -> rootNode.getChildren().size() == 1); } catch (QblStorageException e) { logger.error("unexpected error on test", e); fail(e.getMessage()); } }
@Test(timeout=10000L) public void testUploadFiles() throws QblStorageException, IOException, InterruptedException { File dir = new File(TEST_TMP_DIR); dir.mkdirs(); BoxFolder folder = createBoxFolder(dir); File tmp = new File(dir, "tmp1.txt"); tmp.createNewFile(); controller.upload(tmp.toPath(), testFolder.resolve("tmp1.txt")); assertEquals(1, transferManager.getTransactions().size()); executeTransactions(); BoxNavigation newNav = nav.navigate(folder); assertThat(newNav.listFiles().size(), is(1)); assertThat(newNav.listFolders().size(), is(0)); }