void () { final ConsoleViewImpl console1 = ConsoleViewImplTest.createConsole(false, getProject()); final ConsoleViewImpl console2 = createConsoleWithReversedActions(); final DuplexConsoleView<ConsoleViewImpl, ConsoleViewImpl> duplexConsoleView = new DuplexConsoleView<>(console1, console2); Disposer.register(myDisposable, duplexConsoleView); final AnAction[] actions1 = console1.createConsoleActions(); final AnAction[] actions2 = console2.createConsoleActions(); final AnAction[] mergedActions = duplexConsoleView.createConsoleActions(); assertEquals(actions1.length, actions2.length); assertEquals(actions1.length, mergedActions.length - 1); assertHasActions(mergedActions, "Up", "Down", "Soft-Wrap", "Scroll", "Clear", "Print"); }