@Test
public void testSetupPatternWrapper() throws Exception {

    final Pattern52 pattern52 = new Pattern52() {{
        setFactType("FactType");
        setBoundName("BoundName");
        setEntryPointName("EntryPointName");
        setNegated(true);
    }};
    when(plugin.getEditingPattern()).thenReturn(pattern52);
    plugin.setupPatternWrapper();
    final PatternWrapper patternWrapper = plugin.patternWrapper();
    assertEquals(patternWrapper.getFactType(),
                 "FactType");
    assertEquals(patternWrapper.getBoundName(),
                 "BoundName");
    assertEquals(patternWrapper.getEntryPointName(),
                 "EntryPointName");
    assertEquals(patternWrapper.isNegated(),
                 true);
}