@Test
public void testSetEditingPattern() {

    final ActionWrapper actionWrapper = mock(ActionWrapper.class);
    final PatternWrapper patternWrapper = mock(PatternWrapper.class);
    when(plugin.editingWrapper()).thenReturn(actionWrapper);
    when(patternWrapper.getFactType()).thenReturn("factType");
    when(patternWrapper.getBoundName()).thenReturn("boundName");
    plugin.setEditingPattern(patternWrapper);
    verify(actionWrapper).setFactField("");
    verify(actionWrapper).setFactType("factType");
    verify(actionWrapper).setBoundName("boundName");
    verify(actionWrapper).setType("");
    verify(plugin).fireChangeEvent(patternPage);
    verify(plugin).fireChangeEvent(fieldPage);
    verify(plugin).fireChangeEvent(additionalInfoPage);
}