### Question:
TemplatedArchive extends AbstractArchive { @Override public String getExtension() { return this.archiveFormat.getExtension(); } 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 testGetExtension() { when(archiveFormat.getExtension()).thenReturn(EXTENSION); assertThat(archive.getExtension()).isEqualTo(EXTENSION); }