@VisibleForTesting
    static String generateLogUrl(String pattern, String jobId, String taskManagerId) {
        String generatedUrl = pattern.replaceAll("<jobid>", jobId);
        if (null != taskManagerId) {
            generatedUrl = generatedUrl.replaceAll("<tmid>", taskManagerId);
        }
        return generatedUrl;
    }
@Test
    void testGenerateJobManagerLogUrl() {
        final String pattern = "http://localhost/<jobid>/log";
        final String jobId = "jobid";

        final String generatedUrl = GeneratedLogUrlHandler.generateLogUrl(pattern, jobId, null);

        assertThat(generatedUrl).isEqualTo(pattern.replace("<jobid>", jobId));
    }