@Test
public void getPagePathPattern() {

    when(config.pathRegex()).thenReturn("/content/example/pages/.+");
    final Pattern pattern = model.getPagePathPattern();
    assertNotNull(pattern);
    assertFalse(pattern.matcher("/content/example/pages/").matches());
    assertTrue(pattern.matcher("/content/example/pages/page").matches());
}