@Test
public void testWriteToOutputStream() throws IOException, URISyntaxException {

	System.out.println("testWriteToOutputStream");
	QRCodeGenerator instance = new QRCodeGenerator().setUrl(new URL("https://cida.usgs.gov"));
	File result = File.createTempFile(String.valueOf((new Date()).getTime()), "deleteme");
	result.deleteOnExit();
	OutputStream os = null;
	try {
		os = new FileOutputStream(result);
		instance.writeToOutputStream(os);
	} finally {
		IOUtils.closeQuietly(os);
	}
	assertNotNull(result);
	assertTrue(result.exists());
	assertNotEquals(0, result.length());
	
}