### Question:
TemplatedArchive extends AbstractArchive { @Override public String getArchiveName() { return applyTemplate(this.archiveFormat.getFileTemplate()); } 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 testGetArchiveName() { when(archiveFormat.getFileTemplate()).thenReturn(ARCHIVE_FILE_TEMPLATE); when(archiveFormat.getClassifier()).thenReturn(CLASSIFIER); when(archiveFormat.getExtension()).thenReturn(EXTENSION); assertThat(archive.getArchiveName()).isEqualTo(ARCHIVE_NAME); }