ControlServer implements TailerListener { @Override public void fileNotFound() { logger.log(Level.SEVERE, "Control file not found. FATAL. EXITING."); throw new RuntimeException("Control file not found. FATAL. EXITING."); } ControlServer(); @Deprecated  ControlServer(File ctrlFile, Tailer ctrTailer, LocalEventBus eventBus); void enterLoop(); @Override void fileNotFound(); @Override void handle(String command); @Override void handle(Exception e); @Override void init(Tailer tailer); @Override void fileRotated();  }
@Test(expected = RuntimeException.class) public void testFileNotFound() { ctrlServer.fileNotFound(); }