### Question:
FolderTreeItem extends TreeItem<BoxObject> implements Observer { @Override public ObservableList<TreeItem<BoxObject>> getChildren() { if (!upToDate) { updateAsync(); } return super.getChildren(); } FolderTreeItem(BoxFolder folder, ReadableBoxNavigation navigation); BoxPath getPath(); boolean isLoading(); ReadableBoxNavigation getNavigation(); @Override ObservableList<TreeItem<BoxObject>> getChildren(); @Override boolean isLeaf(); StringProperty getNameProperty(); void setUpToDate(Boolean upToDate); @Override void update(Observable o, Object arg); @Override String toString();  }### Answer:
@Test(timeout = 1000) public void synchronouslyReturnsEmptyList() { navigation = new FakeBoxNavigation(); item = new FolderTreeItem(createSomeFolder(), navigation); navigation.folders.add(new BoxFolder("ref2", "name2", new byte[0])); navigation.loading = true; assertEquals(0, item.getChildren().size()); navigation.loading = false; }