@Test
public void testSetSelectedEditingPattern() throws Exception {

    final PatternWrapper patternWrapper = mock(PatternWrapper.class);
    final String key = "factType boundName false";
    when(page.findPatternWrapperByKey(key)).thenReturn(patternWrapper);
    when(view.getSelectedValue()).thenReturn(key);
    page.setSelectedEditingPattern();
    verify(page).setEditingPattern(patternWrapper);
}