@Test
public void testGetEditingPattern() throws Exception {

    final PatternWrapper patternWrapper = mock(PatternWrapper.class);
    final InOrder inOrder = inOrder(plugin);
    plugin.setEditingPattern(patternWrapper);
    inOrder.verify(plugin).setupDefaultValues();
    inOrder.verify(plugin).setPatternWrapper(patternWrapper);
    verify(plugin).setupDefaultValues();
    verify(plugin).fireChangeEvent(patternPage);
    verify(plugin).fireChangeEvent(calculationTypePage);
    verify(plugin).fireChangeEvent(fieldPage);
    verify(plugin).fireChangeEvent(operatorPage);
    verify(plugin).fireChangeEvent(valueOptionsPage);
    verify(plugin).fireChangeEvent(additionalInfoPage);
}