### Question:
FileManager { public void listFile(MinioClient minioClient, String bucketName) throws XmlPullParserException, NoSuchAlgorithmException, InvalidKeyException, IOException { try { Iterable<Result<Item>> results = minioClient.listObjects(bucketName); Iterator<Result<Item>> iterator = results.iterator(); while (iterator.hasNext()) { Item item = iterator.next().get(); System.out.println(item.objectName() + ", " + item.objectSize() + "B"); } } catch (MinioException e) { System.out.println("Error occurred: " + e); } }  void uploadFile(MinioClient minioClient, String bucketName, String objectName, String filePath); void downloadFile(MinioClient minioClient, String bucketName, String objectName, String downloadPath); void deleteFile(MinioClient minioClient, String bucketName, String objectName); void listFile(MinioClient minioClient, String bucketName); void getObjectStat(MinioClient minioClient, String bucketName, String objectName); boolean checkFileExist(MinioClient minioClient, String bucketName, String objectName);  }### Answer:
@Test void testListFile() throws XmlPullParserException, NoSuchAlgorithmException, InvalidKeyException, IOException { fileManager.listFile(minioClient,bucketName); }