QRCodeGenerator { public File generateToFile() throws IOException { return generateQRCode().file(); }  QRCodeGenerator setVCard(VCard card); QRCodeGenerator setImageType(ImageType type); QRCodeGenerator setCompany(String company); QRCodeGenerator setEMail(String email); QRCodeGenerator setAddress(String address); QRCodeGenerator setName(String name); QRCodeGenerator setPhone(String phone); QRCodeGenerator seTitle(String title); QRCodeGenerator setUrl(URL url); QRCodeGenerator setWidth(int w); QRCodeGenerator setHeight(int h); File generateToFile(); void writeToOutputStream(OutputStream os);  }
@Test public void testGenerateToFile() throws Exception { System.out.println("generateToFile"); File result = new QRCodeGenerator() .setUrl(new URL("https: .generateToFile(); assertNotNull(result); assertTrue(result.exists()); assertNotEquals(0, result.length()); }