### Question:
CSVFileManager { public CSVFolder getParentFolder() { if (this.location == null || this.location.size() < 2) { return null; } return this.location.get(this.location.size() - 2); } CSVFileManager(Communication connection);  CSVFileManager(Capability capability, Communication connection); void setRootCapability(Capability capability); CSVObject putObjectIntoFolder(CSVObject object, CSVFolder folder,
			String alias); CSVObject putObjectIntoCurrentFolder(CSVObject object, String alias); CSVFile uploadFile(CSVFile file); CSVFolder uploadFolder(CSVFolder folder); CSVFile downloadFile(CSVFile file); CSVFolder downloadFolder(CSVFolder folder); CSVFolder downloadFolder(String alias, CSVFolder fromFolder); CSVObject downloadObject(CSVObject object); CSVFolder downloadFolder(Capability capability); CSVFolder cd(String alias); CSVFolder getShareFolder(); CSVFolder getCurrentFolder(); CSVFolder getParentFolder(); CSVFolder replaceCurrentFolder(); CSVFolder getRootFolder(); void unlinkAliasFromCurrentFolder(String alias); void unLinkAliasFromFolder(String alias, CSVFolder folder); static final String SHARE_FOLDER; }### Answer:
@Test public void testGetParentFolder() throws FileNotFoundException, IllegalFileNameException, DuplicateAliasException, ServerCommunicationException, InvalidWriteEnablerException, ImmutableFileExistsException, InsufficientPermissionException, RemoteFileDoesNotExistException, NoSuchAliasException, FailedToVerifySignatureException { CSVFolder folder = new CSVFolder(); this.fileManager.putObjectIntoCurrentFolder(folder, "omg"); this.fileManager.cd("omg"); folder = this.fileManager.getParentFolder(); Assert.assertTrue(folder.getContents().containsKey("omg")); }