### Question:
ExportToPdfSessionCommand extends AbstractExportSessionCommand { @Override protected void export(final String fileName) { canvasFileExport.exportToPdf(getSession().getCanvasHandler(), fileName); } protected  ExportToPdfSessionCommand(); @Inject  ExportToPdfSessionCommand(final CanvasFileExport canvasFileExport);   }### Answer:
@Test @SuppressWarnings("unchecked") public void testExport() { this.tested.execute(callback); verify(canvasFileExport, times(1)).exportToPdf(eq(canvasHandler), eq(FILE_NAME)); verify(canvasFileExport, never()).exportToJpg(any(AbstractCanvasHandler.class), anyString()); verify(canvasFileExport, never()).exportToPng(any(AbstractCanvasHandler.class), anyString()); }