@Test
public void testHasEditingPatternWhenFactPatternIsNotNull() throws Exception {

    when(pattern52.getFactType()).thenReturn("factType");
    when(plugin.patternWrapper()).thenReturn(pattern52);
    assertTrue(page.hasEditingPattern());
}