assertTrue("Print to pdf dialog not showing", printToPdfDialog.isShowing());
// Change file in print to PDF file chooser
final JFileChooserTester fileChooserTester = new JFileChooserTester();
final JFileChooser fileChooser = (JFileChooser)new BasicFinder().find(printToPdfDialog,
new ClassMatcher(JFileChooser.class));
fileChooserTester.actionSetDirectory(fileChooser, System.getProperty("user.dir"));
fileChooserTester.actionSetFilename(fileChooser, pdfFileBase);
// Select Ok option to hide dialog box
fileChooserTester.actionApprove(fileChooser);
// Wait PDF generation
Thread.sleep(2000);