### Question:
QRCode { public String decode(InputStream inputStream) throws IOException, NotFoundException { return decode(ImageIO.read(inputStream)); }  File encode(Profile profile); OutputStream encodeToOutputStream(Profile profile); BufferedImage getBufferedImage(BitMatrix bitMatrix, boolean isLogo, String logoPath); BufferedImage toBufferedImageContents(BitMatrix bitMatrix); String decode(InputStream inputStream); String decode(BufferedImage image); String decode(String path);  }### Answer:
@Test public void testDecode() throws Exception { QRCode qrCode = new QRCode(); File file = qrCode.encode(profile); System.out.println("生成二维码: " + file); String decode = qrCode.decode(file.getPath()); Assert.assertEquals(decode, profile.getContent()); }