FactPatternConstraintsPage extends AbstractGuidedDecisionTableWizardPage implements
        FactPatternConstraintsPageView.Presenter { @Override public void setChosenConditions(final Pattern52 pattern, final List<ConditionCol52> conditions) { pattern.getChildColumns().clear(); pattern.getChildColumns().addAll(conditions); }  @Override String getTitle(); @Override void initialise(); @Override void prepareView(); @Override void isComplete(final Callback<Boolean> callback); void onDuplicatePatterns(final @Observes DuplicatePatternsEvent event); void onConditionsDefined(final @Observes ConditionsDefinedEvent event); @Override void selectPattern(final Pattern52 pattern); @Override void setChosenConditions(final Pattern52 pattern,
                                    final List<ConditionCol52> conditions); @Override void getOperatorCompletions(final Pattern52 selectedPattern,
                                       final ConditionCol52 selectedCondition,
                                       final Callback<String[]> callback); @Override GuidedDecisionTable52.TableFormat getTableFormat(); @Override boolean hasEnum(final Pattern52 selectedPattern,
                           final ConditionCol52 selectedCondition); @Override boolean requiresValueList(final Pattern52 selectedPattern,
                                     final ConditionCol52 selectedCondition); @Override void assertDefaultValue(final Pattern52 selectedPattern,
                                   final ConditionCol52 selectedCondition); @Override void stateChanged();  }
@Test public void testSetChosenConditions() throws Exception { ConditionCol52 a = mock(ConditionCol52.class); ConditionCol52 b = mock(ConditionCol52.class); assertEquals(1, conditions.size()); page.setChosenConditions(pattern, Arrays.asList(a, b)); assertEquals(2, conditions.size()); assertEquals(a, conditions.get(0)); assertEquals(b, conditions.get(1)); }