@Test
public void nullWrappedFilter() throws IOException {

  thrown.expect(NullPointerException.class);
  thrown.expectMessage("The wrapped filter for a WhileMatchFilter cannot be null.");
  WhileMatchFilter filter = new WhileMatchFilter(null);
  instance.adapt(emptyScanContext, filter);
}