### Question:
AbstractArchive implements Archive { @Override public final String getUrl() { String baseUrl = this.getBaseUrl(); StringBuilder url = new StringBuilder(); url.append(baseUrl); if (!baseUrl.endsWith("/")) { url.append('/'); } url.append(this.getArchiveName()); return url.toString(); }  @Override final String getUrl();  }### Answer:
@Test public void getUrlWithNoSlashAtEndOfBaseUrl() { AbstractArchive archive = new MockArchive(BASE_URL, ARCHIVE_NAME); assertThat(archive.getUrl()).isEqualTo(FULL_URL); }
@Test public void getUrlWithSlashAtEndOfBaseUrl() { AbstractArchive archive = new MockArchive(BASE_URL+'/', ARCHIVE_NAME); assertThat(archive.getUrl()).isEqualTo(FULL_URL); }