@Test
public void testSetFactField() throws Exception {

    final PatternWrapper pattern = mock(PatternWrapper.class);
    doReturn("FactField").when(editingCol).getFactField();
    doReturn(editingCol).when(plugin).editingCol();
    doReturn("FactType").when(pattern).getFactType();
    doReturn(pattern).when(plugin).patternWrapper();
    doReturn(oracle).when(presenter).getDataModelOracle();
    plugin.setFactField("FactField");
    verify(editingCol).setFactField("FactField");
    verify(editingCol).setFieldType(oracle.getFieldType("FactField",
                                                        "FactType"));
    verify(plugin).fireChangeEvent(fieldPage);
    verify(plugin).fireChangeEvent(operatorPage);
    verify(plugin).fireChangeEvent(additionalInfoPage);
    verify(plugin).fireChangeEvent(valueOptionsPage);
}