### Question:
PageRecognizersAndChain implements PageRecognizer { public final boolean isPage(final Page candidate) { for (final PageRecognizer item : items) { if (!item.isPage(candidate)) { return false; } } return true; } PageRecognizersAndChain(final List<PageRecognizer> items);  PageRecognizersAndChain(final PageRecognizer... items); final boolean isPage(final Page candidate);  }### Answer:
@Test public void isPage() { when(recognizer1.isPage(candidate)).thenReturn(false); when(recognizer2.isPage(candidate)).thenReturn(false); assertFalse(model.isPage(candidate)); when(recognizer1.isPage(candidate)).thenReturn(true); assertFalse(model.isPage(candidate)); when(recognizer2.isPage(candidate)).thenReturn(true); assertTrue(model.isPage(candidate)); }