HiveUtils { static Optional<String> extractJobURL(String log) { Matcher matcher = JOBURL_PATTERN.matcher(log); if (matcher.matches()) { String jobURL = matcher.group(1); return Optional.of(jobURL); } return Optional.empty(); }  static void startHiveMonitorThread(Statement stmt,
                                            InterpreterContext context,
                                            boolean displayLog);  }
@Test public void testJobURL() { Optional<String> jobURL = HiveUtils.extractJobURL( "INFO : The url to track the job: " + "http: "INFO : Starting Job = job_1591195707498_0064, " + "Tracking URL = http: "INFO : Kill Command = /Users/abc/Java/lib/hadoop-2.7.7/bin/hadoop job " + " -kill job_1591195707498_0064"); assertTrue(jobURL.isPresent()); assertEquals("http: }