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