BoxSDKService { public BoxFolder getRootFolder() throws BoxSDKServiceException { try { return new BoxFolder(getBoxAPIConnection(), getBoxSDKServiceConfig().getRootFolderId()); } catch (BoxAPIException e) { throw new BoxSDKServiceException("Can't retrieve the root folder", e); } }  BoxSDKServiceConfig getBoxSDKServiceConfig(); BoxAPIConnection getBoxAPIConnection(); BoxFolder getRootFolder(); BoxFolder createSharedFolder(String folderName); BoxFolder createSharedFolder(String folderName, String parentId); BoxFolder createFolderUnderRoot(String folderName); BoxFolder createFolder(String folderName, String parentId); BoxFile uploadFile(String folderId, String filename, String filecontent); List<BoxFile> listFiles(String folderId); BoxFileWithContent getFileContent(BoxFile file); String getFileContent(String fileId); String getBoxEmbedWidgetIFrame(BoxFolder boxFolder); BoxFolder getFolderWithName(String folderName); BoxFolder getFolderWithNameAndParentFolderId(String folderName, String parentFolderId); void deleteFolderAndItsContent(String folderId); void deleteFolderContentOlderThan(String folderId, DateTime olderThan); void addCommentToFile(String fileId, String comment);  }
@Test @Category(BoxSDKTest.class) public void testGetRootFolder() throws Exception { BoxFolder rootFolder = boxSDKService.getRootFolder(); assertEquals(boxSDKServiceConfigFromProperties.getRootFolderId(), rootFolder.getID()); }