@Test
  public void should_log_successful_preview_analysis() {
    Settings settings = new Settings();
    when(mode.isPreview()).thenReturn(true);
    ReportPublisher job =
        new ReportPublisher(
            settings,
            mock(ServerClient.class),
            mock(Server.class),
            reactor,
            mode,
            mock(TempFolder.class),
            new ReportPublisherStep[0]);

    Logger logger = mock(Logger.class);
    job.logSuccess(logger);

    verify(logger).info("ANALYSIS SUCCESSFUL");
  }
  @Test
  public void should_log_successful_analysis() {
    Settings settings = new Settings();
    settings.setProperty(CoreProperties.SERVER_BASE_URL, "http://myserver/");
    ReportPublisher job =
        new ReportPublisher(
            settings,
            mock(ServerClient.class),
            mock(Server.class),
            reactor,
            mode,
            mock(TempFolder.class),
            new ReportPublisherStep[0]);

    Logger logger = mock(Logger.class);
    job.logSuccess(logger);

    verify(logger)
        .info("ANALYSIS SUCCESSFUL, you can browse {}", "http://myserver/dashboard/index/struts");
    verify(logger)
        .info(
            "Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report.");
  }