### Question:
QRCodeUtil { public static String decode(BarcodeParamDTO paramDTO) { try { BufferedImage bufferedImage = ImageIO.read(new FileInputStream(paramDTO.getFilepath())); LuminanceSource source = new BufferedImageLuminanceSource(bufferedImage); Binarizer binarizer = new HybridBinarizer(source); BinaryBitmap bitmap = new BinaryBitmap(binarizer); Result result = new MultiFormatReader().decode(bitmap, paramDTO.getDecodeHints()); return result.getText(); } catch (Exception e) { e.printStackTrace(); return null; } }  static void encode(String content, BarcodeParamDTO paramDTO); static String decode(BarcodeParamDTO paramDTO);  }### Answer:
@Test public void test02() { String expect = "{\"gender\":\"MALE\",\"name\":{\"last\":\"Zhang\",\"first\":\"Peng\"},\"email\":\"aaa@163.com\"}"; String content = QRCodeUtil.decode(paramDTO); Assert.assertEquals(expect, content); }