@Test
public void testSetEditingPattern() throws Exception {

    when(view.getEntryPointName()).thenReturn("entryPoint");
    final PatternWrapper pattern = spy(newPattern("factType1",
                                                  "boundName1",
                                                  false));
    page.setEditingPattern(pattern);
    verify(pattern).setEntryPointName("entryPoint");
    verify(plugin).setEditingPattern(pattern);
}