OperatorPage extends BaseDecisionTableColumnPage<ConditionColumnPlugin> { void getOperatorCompletions(final Callback<String[]> callback) { final AsyncPackageDataModelOracle oracle = presenter.getDataModelOracle(); oracle.getOperatorCompletions(plugin().getFactType(), plugin().getFactField(), callback); } @Inject  OperatorPage(final View view,
                        final Event<WizardPageStatusChangeEvent> changeEvent,
                        final TranslationService translationService); @Override String getTitle(); @Override void prepareView(); @Override void isComplete(final Callback<Boolean> callback); String getOperator();  }
@Test public void testGetOperatorCompletions() { when(plugin.getFactType()).thenReturn("factType"); when(plugin.getFactField()).thenReturn("factField"); when(presenter.getDataModelOracle()).thenReturn(oracle); page.getOperatorCompletions(s -> { }); verify(oracle).getOperatorCompletions(eq("factType"), eq("factField"), any()); }