### Question:
EditorSessionCommands { public ExportToPngSessionCommand getExportToPngSessionCommand() { return commands.get(ExportToPngSessionCommand.class); } @Inject  EditorSessionCommands(final ManagedClientSessionCommands commands); @PostConstruct void init(); EditorSessionCommands bind(final ClientSession session); ManagedClientSessionCommands getCommands(); VisitGraphSessionCommand getVisitGraphSessionCommand(); SwitchGridSessionCommand getSwitchGridSessionCommand(); ClearSessionCommand getClearSessionCommand(); DeleteSelectionSessionCommand getDeleteSelectionSessionCommand(); UndoSessionCommand getUndoSessionCommand(); RedoSessionCommand getRedoSessionCommand(); ValidateSessionCommand getValidateSessionCommand(); ExportToPngSessionCommand getExportToPngSessionCommand(); ExportToJpgSessionCommand getExportToJpgSessionCommand(); ExportToPdfSessionCommand getExportToPdfSessionCommand(); ExportToSvgSessionCommand getExportToSvgSessionCommand(); ExportToRawFormatSessionCommand getExportToRawFormatSessionCommand(); CopySelectionSessionCommand getCopySelectionSessionCommand(); PasteSelectionSessionCommand getPasteSelectionSessionCommand(); CutSelectionSessionCommand getCutSelectionSessionCommand(); SaveDiagramSessionCommand getSaveDiagramSessionCommand(); S get(final Class<? extends ClientSessionCommand> type);  }### Answer:
@Test public void testGetExportToPngSessionCommand() { editorSessionCommands.getExportToPngSessionCommand(); verify(commands).get(eq(ExportToPngSessionCommand.class)); }