PageDestinationsSplitPages implements NextOutputStrategy { @Override public void ensureIsValid() throws TaskExecutionException { delegate.ensureIsValid(); } PageDestinationsSplitPages(OutlinePageDestinations destinations); @Override void ensureIsValid(); @Override boolean isOpening(Integer page); @Override boolean isClosing(Integer page);  }
@Test(expected = TaskExecutionException.class) public void invalid() throws TaskExecutionException { when(destinations.getPages()).thenReturn(Collections.EMPTY_SET); PageDestinationsSplitPages victim = new PageDestinationsSplitPages(destinations); victim.ensureIsValid(); }