	@Test
	public void testExport() throws IOException {

		JButton b = new JButton("test");
		b.setSize(100, 100);
		File file = File.createTempFile("itext-text", ".pdf");
		ExportPDF.save(file, b);

		assertTrue(file.exists());
		assertTrue(file.length() > 0);

		file.delete();

		assertFalse(file.exists());

	}