### Question:
EditorSessionCommands { @PostConstruct public void init() { registerCommands(); } @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 testInit() { editorSessionCommands.init(); final InOrder inOrder = inOrder(commands); inOrder.verify(commands).register(VisitGraphSessionCommand.class); inOrder.verify(commands).register(SwitchGridSessionCommand.class); inOrder.verify(commands).register(ClearSessionCommand.class); inOrder.verify(commands).register(DeleteSelectionSessionCommand.class); inOrder.verify(commands).register(UndoSessionCommand.class); inOrder.verify(commands).register(RedoSessionCommand.class); inOrder.verify(commands).register(ValidateSessionCommand.class); inOrder.verify(commands).register(ExportToPngSessionCommand.class); inOrder.verify(commands).register(ExportToJpgSessionCommand.class); inOrder.verify(commands).register(ExportToPdfSessionCommand.class); inOrder.verify(commands).register(ExportToSvgSessionCommand.class); inOrder.verify(commands).register(ExportToRawFormatSessionCommand.class); inOrder.verify(commands).register(CopySelectionSessionCommand.class); inOrder.verify(commands).register(PasteSelectionSessionCommand.class); inOrder.verify(commands).register(CutSelectionSessionCommand.class); inOrder.verify(commands).register(SaveDiagramSessionCommand.class); }