@Test
public void getPageRecognizer() {

    when(config.pageRecognizers()).thenReturn(new String[] {X, Y});
    PageRecognizer pageRecognizer = model.getPageRecognizer();
    assertNotNull(pageRecognizer);
    final Page page = new Page(this.page);
    assertTrue(pageRecognizer.isPage(page));
    pageRecognizer = mock(PageRecognizer.class);
    when(pageRecognizer.isPage(page)).thenReturn(false);
    when(serviceRetriever.getNamedService(PageRecognizer.class, X)).thenReturn(pageRecognizer);
    pageRecognizer = model.getPageRecognizer();
    assertFalse(pageRecognizer.isPage(page));
}