@Test(expected = IllegalStateException.class)
public void testFinishRefreshWithoutLazyRefresh() throws IOException {

  FileWriter efw = new FileWriter(excludesFile);
  FileWriter ifw = new FileWriter(includesFile);
  efw.close();
  ifw.close();
  HostsFileReader hfp = new HostsFileReader(includesFile, excludesFile);
  hfp.finishRefresh();
}