@Test
public void testLoadContentSuccess() throws Exception {

    final RuleModellerActionPlugin pluginOne = mock(RuleModellerActionPlugin.class);
    final RuleModellerActionPlugin pluginTwo = mock(RuleModellerActionPlugin.class);
    doAnswer(invocationOnMock -> {
        final Consumer<RuleModellerActionPlugin> consumer = invocationOnMock.getArgumentAt(0, Consumer.class);
        consumer.accept(pluginOne);
        consumer.accept(pluginTwo);
        return null;
    }).when(actionPluginInstance).forEach(any());
    presenter.loadContent();
    verify(kieEditorWrapperView).clear();
    verify(kieEditorWrapperView).addMainEditorPage(view);
    verify(kieEditorWrapperView).addOverviewPage(any(), any());
    verify(kieEditorWrapperView).addImportsTab(eq(importsWidgetPresenter));
    verify(kieEditorWrapperView).addSourcePage(any());
    verify(oracleFactory).makeAsyncPackageDataModelOracle(resourcePath, ruleModel, payload);
    verify(overviewWidgetPresenter).setContent(overview, resourcePath);
    verify(importsWidgetPresenter).setContent(oracle, imports, false);
    verify(view).hideBusyIndicator();
    verify(view).setContent(eq(ruleModel),
                            pluginsListCaptor.capture(),
                            eq(oracle),
                            eq(ruleNamesServiceCaller),
                            eq(false),
                            eq(false));
    Assertions.assertThat(pluginsListCaptor.getValue()).containsExactly(pluginOne, pluginTwo);
}