### Question:
TemplatedArchive extends AbstractArchive { @Override public String getBaseUrl() { return applyTemplate(this.archiveFormat.getBaseUrlTemplate()); } TemplatedArchive(ArchiveFormat archiveFormat,
                          String version); @Override String getBaseUrl(); @Override String getExtension(); @Override String getArchiveName(); @Override String getPathToExecutable(); @Override String getVersion(); @Override String getClassifier();  }### Answer:
@Test public void testGetBaseUrl() { when(archiveFormat.getBaseUrlTemplate()).thenReturn(BASE_URL_TEMPLATE); assertThat(archive.getBaseUrl()).isEqualTo(BASE_URL); }