### Question:
QRCodeUtil { public static void encode(String content, BarcodeParamDTO paramDTO) throws WriterException, IOException { BitMatrix bitMatrix = new MultiFormatWriter().encode(content, paramDTO.getBarcodeFormat(), paramDTO.getWidth(), paramDTO.getHeight(), paramDTO.getEncodeHints()); Path path = FileSystems.getDefault().getPath(paramDTO.getFilepath()); MatrixToImageWriter.writeToPath(bitMatrix, paramDTO.getImageFormat(), path); }  static void encode(String content, BarcodeParamDTO paramDTO); static String decode(BarcodeParamDTO paramDTO);  }### Answer:
@Test public void test01() throws IOException, WriterException { QRCodeUtil.encode(jsonContent, paramDTO); File f = new File(qrcodeFile); Assert.assertTrue(f.exists()); }