@Test
public void testCurrentPatternValueWhenTheCurrentPatternIsNull() throws Exception {

    when(plugin.patternWrapper()).thenReturn(null);
    final String patternValue = page.currentPatternValue();
    assertEquals("",
                 patternValue);
}