@Test
public void testEditingPattern() {

    final PatternWrapper patternWrapper = mock(PatternWrapper.class);
    doReturn(patternWrapper).when(plugin).patternWrapper();
    when(patternWrapper.getFactType()).thenReturn("factType");
    when(patternWrapper.getBoundName()).thenReturn("boundName");
    when(patternWrapper.isNegated()).thenReturn(false);
    when(patternWrapper.getEntryPointName()).thenReturn("entryPoint");
    final Pattern52 pattern52 = plugin.editingPattern();
    assertEquals("factType",
                 pattern52.getFactType());
    assertEquals("boundName",
                 pattern52.getBoundName());
    assertEquals(false,
                 pattern52.isNegated());
    assertEquals("entryPoint",
                 pattern52.getEntryPointName());
}