### Question:
FileManager { public void uploadFile(MinioClient minioClient, String bucketName, String objectName, String filePath) throws XmlPullParserException, NoSuchAlgorithmException, InvalidKeyException, IOException { try { boolean isExist = minioClient.bucketExists(bucketName); if (!isExist) { minioClient.makeBucket(bucketName); } minioClient.putObject(bucketName, objectName, filePath, null, null, null, null); System.out.println("put " + filePath + " to " + bucketName + ",OK"); } 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 testUploadFile() throws XmlPullParserException, NoSuchAlgorithmException, InvalidKeyException, IOException{ fileManager.uploadFile(minioClient,bucketName,objectName, filePath); assertTrue(fileManager.checkFileExist(minioClient,bucketName,objectName)); }