### Question:
FastDFSRepository { public Map<String, String> getFileMetadata(String fileId) { try { FastDFSClient client = fastDFSPool.getClient(); NameValuePair[] metaList = client.get_metadata1(fileId); if (metaList != null) { HashMap<String, String> map = new HashMap<String, String>(); for (NameValuePair metaItem : metaList) { map.put(metaItem.getName(), metaItem.getValue()); } client.close(); return map; } } catch (IOException | MyException e) { e.printStackTrace(); } return null; }  String uploadFile(File file, String fileName, long fileLength); byte[] downloadFile(String fileId); FileInfo getFileInfo(String fileId); Map<String, String> getFileMetadata(String fileId); int deleteFile(String fileId);  }### Answer:
@Test public void getFileMetadata() { Map<String, String> fileMetadata = fastDFSRepository .getFileMetadata("group1/M00/00/00/wKgBLVrvch6ASeV5AAAAAAAAAAA014.txt"); for (String key : fileMetadata.keySet()) { System.out.println(key); System.out.println(fileMetadata.get(key)); System.out.println("------------------------------"); } }