### Question:
PentahoReportUrl implements ReportUrl { public String getReportUrlPath(String reportName) { StringBuilder builder = new StringBuilder(); String serverFormUrl = reportsConfig.getServerUrl(); builder.append(serverFormUrl); Integer serverFormPort = reportsConfig.getServerPort(); if (serverFormPort != null) { builder.append(":").append(serverFormPort); } String pathStr = reportsConfig.getReportToUrlMap().get(reportName); builder.append(pathStr); String path = builder.toString(); log.debug("getReportUrlPath(): [{}]", path); return path; }  @Override String getNewReportUrl(String reportName); String getReportUrlPath(String reportName); @Override Map<String, String> getNewReportUrlList(); String getReportsUrl(); PentahoReportsConfig getReportsConfig(); void setReportsConfig(PentahoReportsConfig reportsConfig);  }### Answer:
@Test public void getReportUrlPathTest() { expect(reportsConfig.getServerUrl()).andReturn(PENTAHO_SERVER_URL); expect(reportsConfig.getServerPort()).andReturn(PENTAHO_SERVER_PORT); expect(reportsConfig.getReportToUrlMap()).andReturn(reportsProperties); replayAll(); String path = reportUrl.getNewReportUrl(ReportName.COMPLAINT_REPORT.name()); verifyAll(); assertEquals(PENTAHO_SERVER_URL + ":" + PENTAHO_SERVER_PORT + COMPLAINT_REPORT, path); }