@Test
 public void readMultipleLogFileBatches() {
   int batchSize = 100;
   logFileParser = new LogFileParser(null);
   FileHandler handler = new FileHandler(new File(logFile150lines));
   ArrayList<LogLineBean> docs = logFileParser.readBatch(handler, batchSize);
   assertEquals(docs.size(), batchSize);
   docs = logFileParser.readBatch(handler, batchSize);
   assertEquals(docs.size(), 50);
 }
 @Test
 public void simulateSendingFiles() {
   ESIntegration esIntegration = new ESIntegration(true);
   logFileParser = new LogFileParser(esIntegration);
   int sentFiles = logFileParser.sendFiles(logFileDirectory);
   assertEquals(sentFiles, 2);
 }
 @Test
 public void readGzippedLogFile() {
   int batchSize = 150;
   logFileParser = new LogFileParser(null);
   FileHandler handler = new FileHandler(new File(logFile150linesGzipped));
   ArrayList<LogLineBean> docs = logFileParser.readBatch(handler, batchSize);
   assertEquals(docs.size(), batchSize);
 }